diff options
| author | tv <tv@krebsco.de> | 2026-10-31 04:55:00 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 04:55:00 +0100 |
| commit | c77e4f781097d8ce9f2dbf9162fa71157f1efb96 (patch) | |
| tree | 622fd0409b7e3e9b7d67ca096e6b0eedfbd3e37d /src/api/dashboard/dashboard.html | |
| parent | f2932b9133474c8269cdc020bc01a78a7716276a (diff) | |
dashboard: write growing list into page when serving
Diffstat (limited to 'src/api/dashboard/dashboard.html')
| -rw-r--r-- | src/api/dashboard/dashboard.html | 6 |
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) => |
