| Index: net/quic/core/congestion_control/rtt_stats.cc
|
| diff --git a/net/quic/core/congestion_control/rtt_stats.cc b/net/quic/core/congestion_control/rtt_stats.cc
|
| index 086511cd3a2fc45dab13efa69c5fb8120dce1d83..e5da34ae11495467a68dffc164d679a6d5fa6532 100644
|
| --- a/net/quic/core/congestion_control/rtt_stats.cc
|
| +++ b/net/quic/core/congestion_control/rtt_stats.cc
|
| @@ -8,7 +8,6 @@
|
|
|
| #include "net/quic/core/quic_flags.h"
|
|
|
| -using std::max;
|
|
|
| namespace net {
|
|
|
| @@ -32,10 +31,10 @@ RttStats::RttStats()
|
| initial_rtt_us_(kInitialRttMs * kNumMicrosPerMilli) {}
|
|
|
| void RttStats::ExpireSmoothedMetrics() {
|
| - mean_deviation_ = max(mean_deviation_,
|
| - QuicTime::Delta::FromMicroseconds(std::abs(
|
| - (smoothed_rtt_ - latest_rtt_).ToMicroseconds())));
|
| - smoothed_rtt_ = max(smoothed_rtt_, latest_rtt_);
|
| + mean_deviation_ = std::max(
|
| + mean_deviation_, QuicTime::Delta::FromMicroseconds(std::abs(
|
| + (smoothed_rtt_ - latest_rtt_).ToMicroseconds())));
|
| + smoothed_rtt_ = std::max(smoothed_rtt_, latest_rtt_);
|
| }
|
|
|
| // Updates the RTT based on a new sample.
|
|
|