From c77e4f781097d8ce9f2dbf9162fa71157f1efb96 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 04:55:00 +0100 Subject: dashboard: write growing list into page when serving --- src/api/dashboard/dashboard.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/dashboard/dashboard.html') 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) => -- cgit v1.3.1