| Index: remoting/webapp/base/js/stats_accumulator.js
|
| diff --git a/remoting/webapp/base/js/stats_accumulator.js b/remoting/webapp/base/js/stats_accumulator.js
|
| index e8bda09ff0a11752131ec6af1e1d9604f223c917..e0edd49653807203dd25b333d7c5f2af697fc45f 100644
|
| --- a/remoting/webapp/base/js/stats_accumulator.js
|
| +++ b/remoting/webapp/base/js/stats_accumulator.js
|
| @@ -94,26 +94,6 @@
|
| };
|
|
|
| /**
|
| - * Finds the max of the values for a given key.
|
| - *
|
| - * @param {string} key
|
| - * @return {number} the max of the values for that key
|
| - */
|
| -remoting.StatsAccumulator.prototype.calcMax = function(key) {
|
| - /**
|
| - * @param {Array<number>} values
|
| - * @return {number}
|
| - */
|
| - var calcMax = function(values) {
|
| - if (!values || !values.length) {
|
| - return 0;
|
| - }
|
| - return Math.max.apply(null, values);
|
| - };
|
| - return this.map(key, calcMax);
|
| -};
|
| -
|
| -/**
|
| * Applies a given map to the list of values for a given key.
|
| *
|
| * @param {string} key
|
| @@ -151,15 +131,10 @@
|
| var stats = new remoting.ClientSession.PerfStats();
|
| stats.videoBandwidth = this.calcMean('videoBandwidth');
|
| stats.captureLatency = this.calcMean('captureLatency');
|
| - stats.maxCaptureLatency = this.calcMax('maxCaptureLatency');
|
| stats.encodeLatency = this.calcMean('encodeLatency');
|
| - stats.maxEncodeLatency = this.calcMax('maxEncodeLatency');
|
| stats.decodeLatency = this.calcMean('decodeLatency');
|
| - stats.maxDecodeLatency = this.calcMax('maxDecodeLatency');
|
| stats.renderLatency = this.calcMean('renderLatency');
|
| - stats.maxRenderLatency = this.calcMax('maxRenderLatency');
|
| stats.roundtripLatency = this.calcMean('roundtripLatency');
|
| - stats.maxRoundtripLatency = this.calcMax('maxRoundtripLatency');
|
|
|
| for (var key in stats) {
|
| if (stats[key] !== 0) {
|
|
|