| Index: remoting/client/chromoting_stats.cc
|
| diff --git a/remoting/client/chromoting_stats.cc b/remoting/client/chromoting_stats.cc
|
| index 71b7199ff5adca1f9222636bb5cc5fe79efedea8..01c67df81751d4b9beffd41388b32c3f4dcd41d7 100644
|
| --- a/remoting/client/chromoting_stats.cc
|
| +++ b/remoting/client/chromoting_stats.cc
|
| @@ -6,24 +6,25 @@
|
|
|
| namespace {
|
|
|
| -// The default window of bandwidth and frame rate in seconds.
|
| -const int kTimeWindow = 3;
|
| -
|
| // We take the last 10 latency numbers and report the average.
|
| -const int kLatencyWindow = 10;
|
| +const int kLatencySampleSize = 10;
|
|
|
| } // namespace
|
|
|
| namespace remoting {
|
|
|
| ChromotingStats::ChromotingStats()
|
| - : video_bandwidth_(base::TimeDelta::FromSeconds(kTimeWindow)),
|
| - video_frame_rate_(base::TimeDelta::FromSeconds(kTimeWindow)),
|
| - video_capture_ms_(kLatencyWindow),
|
| - video_encode_ms_(kLatencyWindow),
|
| - video_decode_ms_(kLatencyWindow),
|
| - video_paint_ms_(kLatencyWindow),
|
| - round_trip_ms_(kLatencyWindow) {
|
| + : video_bandwidth_(
|
| + base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds)),
|
| + video_frame_rate_(
|
| + base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds)),
|
| + video_packet_rate_(
|
| + base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds)),
|
| + video_capture_ms_(kLatencySampleSize),
|
| + video_encode_ms_(kLatencySampleSize),
|
| + video_decode_ms_(kLatencySampleSize),
|
| + video_paint_ms_(kLatencySampleSize),
|
| + round_trip_ms_(kLatencySampleSize) {
|
| }
|
|
|
| ChromotingStats::~ChromotingStats() {
|
|
|