mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 02:33:32 +00:00
aec63b7abd
The StackedMemoryBar component was incorrectly calculating segments when Proxmox balloon was set to maxmem (no actual ballooning). In this case: - balloon = total (e.g., 32GB) - used = actual memory (e.g., 20GB) - active = used - balloon = 20GB - 32GB = 0 (clamped) - balloonPercent = 32GB/32GB * 100 = 100% This caused the bar to always show 100% yellow (balloon) even when the actual memory usage was much lower. Fixed by only showing balloon segment when actual ballooning is in effect (balloon > 0 && balloon < total). When there's no ballooning, the bar now correctly shows used memory as green with the actual percentage. Related to #788