feat(api): add cached container cpu/mem fields on containers-dashboard
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user