diff options
Diffstat (limited to 'www/chromium/files/patch-net_quic_congestion__control_rtt__stats.cc')
-rw-r--r-- | www/chromium/files/patch-net_quic_congestion__control_rtt__stats.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/chromium/files/patch-net_quic_congestion__control_rtt__stats.cc b/www/chromium/files/patch-net_quic_congestion__control_rtt__stats.cc new file mode 100644 index 000000000000..41aa42027f0d --- /dev/null +++ b/www/chromium/files/patch-net_quic_congestion__control_rtt__stats.cc @@ -0,0 +1,29 @@ +--- net/quic/congestion_control/rtt_stats.cc.orig 2016-05-11 19:02:24 UTC ++++ net/quic/congestion_control/rtt_stats.cc +@@ -4,7 +4,7 @@ + + #include "net/quic/congestion_control/rtt_stats.h" + +-#include <cstdlib> // std::abs ++#include <cstdlib> // std::labs + + using std::max; + +@@ -41,7 +41,7 @@ void RttStats::ExpireSmoothedMetrics() { + mean_deviation_ = + max(mean_deviation_, + QuicTime::Delta::FromMicroseconds( +- std::abs(smoothed_rtt_.Subtract(latest_rtt_).ToMicroseconds()))); ++ std::labs(smoothed_rtt_.Subtract(latest_rtt_).ToMicroseconds()))); + smoothed_rtt_ = max(smoothed_rtt_, latest_rtt_); + } + +@@ -81,7 +81,7 @@ void RttStats::UpdateRtt(QuicTime::Delta + } else { + mean_deviation_ = QuicTime::Delta::FromMicroseconds(static_cast<int64_t>( + kOneMinusBeta * mean_deviation_.ToMicroseconds() + +- kBeta * std::abs(smoothed_rtt_.Subtract(rtt_sample).ToMicroseconds()))); ++ kBeta * std::labs(smoothed_rtt_.Subtract(rtt_sample).ToMicroseconds()))); + smoothed_rtt_ = + smoothed_rtt_.Multiply(kOneMinusAlpha).Add(rtt_sample.Multiply(kAlpha)); + DVLOG(1) << " smoothed_rtt(us):" << smoothed_rtt_.ToMicroseconds() |