From 427d7b47a169ff9426018b70a0a35358bd247d46 Mon Sep 17 00:00:00 2001 From: kodi Date: Thu, 19 Feb 2026 16:41:44 +0100 Subject: [PATCH] feat(containers): reset pod CPU/MEM totals bij stoppen of fout van stats-stream --- webui/html/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/webui/html/index.html b/webui/html/index.html index bda5b5a..4e0731b 100644 --- a/webui/html/index.html +++ b/webui/html/index.html @@ -903,7 +903,7 @@ }); containersStatsES.onerror = () => { - // EventSource reconnect automatisch; geen actie nodig + resetPodTotals(); }; } @@ -911,8 +911,18 @@ if (!containersStatsES) return; containersStatsES.close(); containersStatsES = null; + resetPodTotals(); } + function resetPodTotals() { + document.querySelectorAll('[id^="podcpu-"]').forEach(el => { + el.textContent = '-'; + }); + document.querySelectorAll('[id^="podmem-"]').forEach(el => { + el.textContent = '-'; + }); + } + async function containerInspect(name) { try { const res = await api(`/containers/inspect/${encodeURIComponent(name)}`, 'GET');