Index: webrtc/video/stats_counter.cc |
diff --git a/webrtc/video/stats_counter.cc b/webrtc/video/stats_counter.cc |
index b1c24ee67328745b54e5915301f6fc70d4118a81..86dedd9e4f7709fb0208d14507ba5dfd3f265f35 100644 |
--- a/webrtc/video/stats_counter.cc |
+++ b/webrtc/video/stats_counter.cc |
@@ -26,11 +26,15 @@ const uint32_t kStreamId0 = 0; |
} // namespace |
std::string AggregatedStats::ToString() const { |
+ return ToStringWithMultiplier(1); |
+} |
+ |
+std::string AggregatedStats::ToStringWithMultiplier(int multiplier) const { |
std::stringstream ss; |
ss << "periodic_samples:" << num_samples << ", {"; |
- ss << "min:" << min << ", "; |
- ss << "avg:" << average << ", "; |
- ss << "max:" << max << "}"; |
+ ss << "min:" << (min * multiplier) << ", "; |
+ ss << "avg:" << (average * multiplier) << ", "; |
+ ss << "max:" << (max * multiplier) << "}"; |
return ss.str(); |
} |