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

Unified Diff: appengine/swarming/elements/res/imp/botpage/bot-page-data.html

Issue 2381853003: Add bot-page summary with utilization stats (Closed) Base URL: git@github.com:luci/luci-py@page-everywhere
Patch Set: address spaces Created 4 years, 2 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/elements/res/imp/botpage/bot-page-data.html
diff --git a/appengine/swarming/elements/res/imp/botpage/bot-page-data.html b/appengine/swarming/elements/res/imp/botpage/bot-page-data.html
index 7c46db5c827ca2f8fc62cc88287e4377dcd2060e..272211063a869de395e7708138986f337280fbd3 100644
--- a/appengine/swarming/elements/res/imp/botpage/bot-page-data.html
+++ b/appengine/swarming/elements/res/imp/botpage/bot-page-data.html
@@ -219,6 +219,7 @@
} else {
var end = task.completed_ts || task.abandoned_ts || task.modified_ts || new Date();
task.human_duration = this._timeDiffExact(task.started_ts, end);
+ task.duration = (end.getTime() - task.started_ts) / 1000;
}
task.state = task.state || "UNKNOWN";

Powered by Google App Engine
This is Rietveld 408576698