Fix ram gauge
This commit is contained in:
2
app.py
2
app.py
@@ -235,6 +235,8 @@ def collect():
|
|||||||
"cpu_total_pct": clamp(total_cpu_pct), # sum of container CPU%, can exceed 100 if multi-core; we clamp for display
|
"cpu_total_pct": clamp(total_cpu_pct), # sum of container CPU%, can exceed 100 if multi-core; we clamp for display
|
||||||
"ram_used_bytes": total_mem_used_bytes,
|
"ram_used_bytes": total_mem_used_bytes,
|
||||||
"ram_total_bytes": host_mem_total,
|
"ram_total_bytes": host_mem_total,
|
||||||
|
"ram_used_h": format_bytes(total_mem_used_bytes),
|
||||||
|
"ram_total_h": format_bytes(host_mem_total),
|
||||||
"ram_pct": clamp(ram_pct),
|
"ram_pct": clamp(ram_pct),
|
||||||
"docker_images_size_bytes": images_size_bytes,
|
"docker_images_size_bytes": images_size_bytes,
|
||||||
"docker_images_used_bytes": images_used_bytes,
|
"docker_images_used_bytes": images_used_bytes,
|
||||||
|
|||||||
Reference in New Issue
Block a user