From e31390417cd62fdcd32bc56af19cffad4a08d73f Mon Sep 17 00:00:00 2001 From: z4yx Date: Tue, 7 Apr 2020 10:24:29 +0800 Subject: [PATCH] display how long the sync takes --- static/js/index.es6 | 1 + status.html | 17 ++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/static/js/index.es6 b/static/js/index.es6 index 37933be..922f569 100644 --- a/static/js/index.es6 +++ b/static/js/index.es6 @@ -163,6 +163,7 @@ var processMirrorItem = function(d){ // Strip the second component of last_update [d.last_update, d.last_update_ago] = stringifyTime(d.last_update_ts); [d.last_ended, d.last_ended_ago] = stringifyTime(d.last_ended_ts); + [d.last_started, d.last_started_ago] = stringifyTime(d.last_started_ts); [d.next_schedule, d.next_schedule_ago] = stringifyTime(d.next_schedule_ts); return d; } diff --git a/status.html b/status.html index 4f02817..5db8561 100644 --- a/status.html +++ b/status.html @@ -67,7 +67,8 @@ permalink: /status/
Last Successful Sync
Last Attempted Sync
-
Next Scheduled Sync
+
Sync Started
+
Next Scheduled Sync
- - +
{{mir.last_started_ago}} +
{{mir.last_started}}
+
+
{{mir.next_schedule_ago}} +
{{mir.next_schedule}}
+