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

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

Issue 2928803003: Swarming UI: Fix issue with negative pending time. (Closed)
Patch Set: Vulcanized files. 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 | « appengine/swarming/ui/build/elements.html ('k') | 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..0f42b633796d8068a45a5c8d274259534f3740b9 100644
--- a/appengine/swarming/ui/res/imp/taskpage/task-page.html
+++ b/appengine/swarming/ui/res/imp/taskpage/task-page.html
@@ -920,7 +920,11 @@
},
_duration: function(start, end) {
- return end.getTime() - start.getTime();
+ var duration = end.getTime() - start.getTime();
+ if (duration < 0) {
+ duration = 0;
+ }
+ return duration;
},
_empty: function(array) {
« no previous file with comments | « appengine/swarming/ui/build/elements.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698