From ac5e3cb14e3d29ffcdf50b09bab5e1b1f5512e14 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Mon, 23 Feb 2026 10:13:08 +0100 Subject: [PATCH] fix(monitoring): read used_mem_mb from nested system object in API response The /api/system/info response wraps SystemInfo under data.system, not directly under data. Co-Authored-By: Claude Opus 4.6 --- controller/internal/web/templates/monitoring.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/internal/web/templates/monitoring.html b/controller/internal/web/templates/monitoring.html index 5b78bee..6a175c0 100644 --- a/controller/internal/web/templates/monitoring.html +++ b/controller/internal/web/templates/monitoring.html @@ -532,7 +532,7 @@ try { var resp = await fetch('/api/system/info'); var json = await resp.json(); - if (json.ok && json.data) usedMB = json.data.used_mem_mb || 0; + if (json.ok && json.data && json.data.system) usedMB = json.data.system.used_mem_mb || 0; } catch(e) {} if (!usedMB) return;