Index: webrtc/base/ratetracker.cc |
diff --git a/webrtc/base/ratetracker.cc b/webrtc/base/ratetracker.cc |
index a59ec2fc3f419c4fd0d33fa4234eba6ef36e940e..d8ff7c4975cd74dc451d134381ef72a5e49c9003 100644 |
--- a/webrtc/base/ratetracker.cc |
+++ b/webrtc/base/ratetracker.cc |
@@ -93,6 +93,11 @@ double RateTracker::ComputeRateForInterval( |
static_cast<double>(available_interval_milliseconds); |
} |
+double RateTracker::ComputeRate() const { |
+ return ComputeRateForInterval(bucket_milliseconds_ * |
+ static_cast<int64_t>(bucket_count_)); |
+} |
+ |
double RateTracker::ComputeTotalRate() const { |
if (bucket_start_time_milliseconds_ == kTimeUnset) { |
return 0.0; |