aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/dashboard')
-rw-r--r--src/api/dashboard/dashboard.html2
-rw-r--r--src/api/dashboard/mod.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html
index 0bbd9c5..091d7ee 100644
--- a/src/api/dashboard/dashboard.html
+++ b/src/api/dashboard/dashboard.html
@@ -163,7 +163,7 @@ let state = null;
let stateAt = 0;
// Fields that grow by themselves (`GROWING` and `is_age` in the node's dashboard).
-const GROWING = new Set(["uptimeSecs", "dormantForSecs", "observedSecs",
+const GROWING = new Set(["uptimeSecs", "dormantForSecs", "divergedForSecs", "observedSecs",
"lastFromNeighbourSecs", "oldestQuarantineSecs"]);
const isAge = key => key === "secsAgo" || key.endsWith("SecsAgo") || GROWING.has(key);
const elapsed = () => Math.floor((Date.now() - stateAt) / 1000);
diff --git a/src/api/dashboard/mod.rs b/src/api/dashboard/mod.rs
index 86f349a..ad907ed 100644
--- a/src/api/dashboard/mod.rs
+++ b/src/api/dashboard/mod.rs
@@ -324,6 +324,7 @@ fn links_json(links: &[Link]) -> JsonValue {
const GROWING: &[&str] = &[
"uptimeSecs",
"dormantForSecs",
+ "divergedForSecs",
"observedSecs",
"lastFromNeighbourSecs",
"oldestQuarantineSecs",