Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Unified Diff: net/quic/core/congestion_control/rtt_stats.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/congestion_control/prr_sender.cc ('k') | net/quic/core/crypto/aead_base_encrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1fd7a2c95800fb19a6619c1cf52736812ae1ade0..43e6ed3624438bd93feee14170f3917d3bc967de 100644
--- a/net/quic/core/congestion_control/rtt_stats.cc
+++ b/net/quic/core/congestion_control/rtt_stats.cc
@@ -16,8 +16,8 @@ namespace {
const int kInitialRttMs = 100;
const float kAlpha = 0.125f;
const float kOneMinusAlpha = (1 - kAlpha);
-const float kBeta = 0.25f;
-const float kOneMinusBeta = (1 - kBeta);
+const float kBeta2 = 0.25f;
+const float kOneMinusBeta = (1 - kBeta2);
} // namespace
@@ -74,7 +74,7 @@ void RttStats::UpdateRtt(QuicTime::Delta send_delta,
} else {
mean_deviation_ = QuicTime::Delta::FromMicroseconds(static_cast<int64_t>(
kOneMinusBeta * mean_deviation_.ToMicroseconds() +
- kBeta * std::abs((smoothed_rtt_ - rtt_sample).ToMicroseconds())));
+ kBeta2 * std::abs((smoothed_rtt_ - rtt_sample).ToMicroseconds())));
smoothed_rtt_ = kOneMinusAlpha * smoothed_rtt_ + kAlpha * rtt_sample;
QUIC_DVLOG(1) << " smoothed_rtt(us):" << smoothed_rtt_.ToMicroseconds()
<< " mean_deviation(us):" << mean_deviation_.ToMicroseconds();
« no previous file with comments | « net/quic/core/congestion_control/prr_sender.cc ('k') | net/quic/core/crypto/aead_base_encrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698