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

Unified Diff: tools/perf/metrics/media.js

Issue 84593002: [telemetry] Fix type of of media metric. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/media.js
diff --git a/tools/perf/metrics/media.js b/tools/perf/metrics/media.js
index 4df38d1a6ee5df7729734de74a2388a959f0d78f..85b10526da5988e61385fc059a371383eb65b982 100644
--- a/tools/perf/metrics/media.js
+++ b/tools/perf/metrics/media.js
@@ -96,7 +96,8 @@
var actualDuration = loopTimer.stop();
var idealDuration = metric.element.duration * loopCount;
var avg_loop_time = (actualDuration - idealDuration) / loopCount;
- metric.metrics['avg_loop_time'] = avg_loop_time.toFixed(3);
+ metric.metrics['avg_loop_time'] =
+ Math.round(avg_loop_time * 1000) / 1000;
e.target.removeEventListener('endLoop', onEndLoop);
};
this.element.addEventListener('endLoop', onEndLoop);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698