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

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h

Issue 2990163002: Almost full implementation of BBR's core. (Closed)
Patch Set: Created 3 years, 5 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
Index: webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h
diff --git a/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h b/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h
index 8c9823c035f059e7509a13330ab7141c0ff5ff0f..f69e83a689c93aeaebfae17560985cb87ddca972 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h
+++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h
@@ -26,8 +26,8 @@ class MinRttFilter {
~MinRttFilter() {}
rtc::Optional<int64_t> min_rtt_ms() { return min_rtt_ms_; }
- void add_rtt_sample(int64_t rtt_ms, int64_t now_ms) {
- if (!min_rtt_ms_ || rtt_ms <= *min_rtt_ms_) {
+ void add_rtt_sample(int64_t rtt_ms, int64_t now_ms, bool min_rtt_expired) {
philipel 2017/08/04 12:08:08 AddRttSample Also, it should not take |min_rtt_ex
gnish1 2017/08/07 10:34:29 Done.
+ if (!min_rtt_ms_ || rtt_ms <= *min_rtt_ms_ || min_rtt_expired) {
min_rtt_ms_.emplace(rtt_ms);
discovery_time_ms_ = now_ms;
}

Powered by Google App Engine
This is Rietveld 408576698