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

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

Issue 2928803003: Swarming UI: Fix issue with negative pending time. (Closed)
Patch Set: Created 3 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/ui/res/imp/taskpage/task-page.html
diff --git a/appengine/swarming/ui/res/imp/taskpage/task-page.html b/appengine/swarming/ui/res/imp/taskpage/task-page.html
index ce78cbb592acc4618d15e8105d90a1d9cf23d8a2..a75fba0c55e4bbae79ce2976b0270fbd3e2ba17a 100644
--- a/appengine/swarming/ui/res/imp/taskpage/task-page.html
+++ b/appengine/swarming/ui/res/imp/taskpage/task-page.html
@@ -920,6 +920,9 @@
},
_duration: function(start, end) {
+ if (start.getTime() >= end.getTime()) {
Ryan Tseng 2017/06/07 22:06:59 to avoid calling getTime() this many times, i'd pr
ayanaadylova 2017/06/07 22:12:25 Done.
+ return 0;
+ }
return end.getTime() - start.getTime();
},
« 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