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

Unified Diff: content/browser/resources/media/peer_connection_update_table.js

Issue 428133005: Fix a time conversion bug on webrtc-internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months 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 | « content/browser/media/webrtc_internals.cc ('k') | content/browser/resources/media/stats_table.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/media/peer_connection_update_table.js
diff --git a/content/browser/resources/media/peer_connection_update_table.js b/content/browser/resources/media/peer_connection_update_table.js
index 6bb94cf86826f218690aee866f478dc84dc2ff28..f5e58b5be0c5c0b7b2128f34af3b53b511983bd3 100644
--- a/content/browser/resources/media/peer_connection_update_table.js
+++ b/content/browser/resources/media/peer_connection_update_table.js
@@ -81,7 +81,7 @@ var PeerConnectionUpdateTable = (function() {
var row = document.createElement('tr');
tableElement.firstChild.appendChild(row);
- var time = new Date(parseInt(update.time));
+ var time = new Date(parseFloat(update.time));
row.innerHTML = '<td>' + time.toLocaleString() + '</td>';
if (update.value.length == 0) {
« no previous file with comments | « content/browser/media/webrtc_internals.cc ('k') | content/browser/resources/media/stats_table.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698