feat(api): add cached container cpu/mem fields on containers-dashboard

This commit is contained in:
kodi
2026-02-25 14:42:03 +01:00
parent 658e41cfba
commit 8e4e0067ff
2 changed files with 51 additions and 46 deletions
+1
View File
@@ -70,6 +70,7 @@ async def _stats_poller_loop():
key = _norm_container_name(st.get("Name"))
if not key:
continue
# CPUPerc returned by Podman is already percentage (0.10 == 0.10%)
cpu_val = st.get("CPUPerc")
if cpu_val is None:
cpu_val = st.get("CPU")