aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/dashboard/dashboard.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/dashboard/dashboard.html')
-rw-r--r--src/api/dashboard/dashboard.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html
index 091d7ee..dd764b6 100644
--- a/src/api/dashboard/dashboard.html
+++ b/src/api/dashboard/dashboard.html
@@ -162,9 +162,9 @@ const PAGE_VERSION = "__PAGE_VERSION__";
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", "divergedForSecs", "observedSecs",
- "lastFromNeighbourSecs", "oldestQuarantineSecs"]);
+// Fields that grow by themselves: the node's list (`GROWING` and `is_age` in its
+// dashboard), filled in when it serves the page.
+const GROWING = new Set(__GROWING__);
const isAge = key => key === "secsAgo" || key.endsWith("SecsAgo") || GROWING.has(key);
const elapsed = () => Math.floor((Date.now() - stateAt) / 1000);
const aged = (key, value) =>