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

Unified Diff: appengine/swarming/ui/res/imp/taskpage/task-page-data.html

Issue 2920473002: Make tasklist and taskpage use subsecond durations (Closed)
Patch Set: Created 3 years, 7 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
Index: appengine/swarming/ui/res/imp/taskpage/task-page-data.html
diff --git a/appengine/swarming/ui/res/imp/taskpage/task-page-data.html b/appengine/swarming/ui/res/imp/taskpage/task-page-data.html
index 9c0ce2a101111de096357fef3434be5f88b6561a..076e6e300f5776de34763095a708d6112d654a0d 100644
--- a/appengine/swarming/ui/res/imp/taskpage/task-page-data.html
+++ b/appengine/swarming/ui/res/imp/taskpage/task-page-data.html
@@ -187,9 +187,7 @@
result.duration = (now - result.started_ts) / 1000;
}
// Make the duration human readable
- if (result.duration){
- result.human_duration = this._humanDuration(result.duration);
- }
+ result.human_duration = this._humanDuration(result.duration);
return result;
},

Powered by Google App Engine
This is Rietveld 408576698