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

Unified Diff: remoting/webapp/crd/js/log_to_server.js

Issue 961053004: Rename elapsed-time field in Chromoting log events to session-duration, to align with server-side f… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | remoting/webapp/crd/js/server_log_entry.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/log_to_server.js
diff --git a/remoting/webapp/crd/js/log_to_server.js b/remoting/webapp/crd/js/log_to_server.js
index d76b33f0d00e068200649e3b946df75c4fab4a58..fcd7e052770ed2ded21fa239382a44e524e14948 100644
--- a/remoting/webapp/crd/js/log_to_server.js
+++ b/remoting/webapp/crd/js/log_to_server.js
@@ -174,8 +174,9 @@ remoting.LogToServer.prototype.logAccumulatedStatistics_ = function() {
*/
remoting.LogToServer.prototype.log_ = function(entry) {
// Log the time taken to get to this point from the time this session started.
- var elapsedTimeInMs = new Date().getTime() - this.sessionStartTime_;
- entry.addElapsedTimeMs(elapsedTimeInMs);
+ var sessionDurationInSeconds =
+ (new Date().getTime() - this.sessionStartTime_) / 1000.0;
+ entry.addSessionDuration(sessionDurationInSeconds);
// Send the stanza to the debug log.
console.log('Enqueueing log entry:');
« no previous file with comments | « no previous file | remoting/webapp/crd/js/server_log_entry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698