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

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

Issue 84483002: [telemetry] Fix types and type checks of numeric results. (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 | « tools/perf/benchmarks/dromaeo.py ('k') | tools/telemetry/telemetry/value/list_of_scalar_values.py » ('j') | 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 4a1f6c7c3e0f33fbab92fc8c2f4463decc9aadd2..4df38d1a6ee5df7729734de74a2388a959f0d78f 100644
--- a/tools/perf/metrics/media.js
+++ b/tools/perf/metrics/media.js
@@ -155,7 +155,7 @@
stop: function() {
// Return delta time since start in millisecs.
- return ((getCurrentTime() - this.start_)).toFixed(3);
+ return Math.round((getCurrentTime() - this.start_) * 1000) / 1000;
}
};
« no previous file with comments | « tools/perf/benchmarks/dromaeo.py ('k') | tools/telemetry/telemetry/value/list_of_scalar_values.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698