Commit Graph
3 Commits
Author SHA1 Message Date
upstream 92f8784d03 Upstream proxmox-git/pve-manager state of the touched files before cf848bda29 2026-09-25 07:15:08 +02:00
dualfroz 0e587291d6 fix #7224: ui: utils: show memory usage above 100% correctly
render_mem_usage_percent() treated any value above 1 as a byte count
and recalculated the percentage from 'mem' and 'maxmem'. But the memory
usage ratio of a guest can legitimately exceed 1, for example when the
reported usage is the host-side memory of the QEMU process, which
includes its own overhead. In the reported case, 'mem' was 2222472192
with a 'maxmem' of 2147483648, so the ratio of about 1.035 got taken as
bytes and the search and resource grids showed 0.0 % instead of 103.5 %.

All users of the renderer now pass the usage as a ratio, so drop the
bytes fallback and always render the value as percentage.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-09-25 07:15:08 +02:00
upstream 8cb3c7079c Upstream proxmox-git/pve-manager state of the touched files before 87f04ef76a 2026-09-25 07:15:08 +02:00