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

Unified Diff: appengine/swarming/ui/build/elements.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 | « no previous file | appengine/swarming/ui/res/imp/taskpage/task-page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/ui/build/elements.html
diff --git a/appengine/swarming/ui/build/elements.html b/appengine/swarming/ui/build/elements.html
index 85b042a05c4cf383b8384f8897da5dd558bacbff..c1536b056f9c84371bb67d915b38d3a05f2ff759 100644
--- a/appengine/swarming/ui/build/elements.html
+++ b/appengine/swarming/ui/build/elements.html
@@ -1299,7 +1299,11 @@ monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir
},
_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 | « no previous file | appengine/swarming/ui/res/imp/taskpage/task-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698