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 | fd702346f09ad970ff068c04d1baa61c6a923357 (patch) | |
| tree | cf76500b1f8fd59c8ac000a4390fe9a0736b987c /src/api/dashboard/dashboard.html | |
| parent | 098c7ff677efd5015c97c2e5950ea5fb657af998 (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) => |
