Pulse/frontend-modern/src
rcourtman aec63b7abd Fix memory bar width showing 100% instead of actual percentage
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
2025-12-02 00:08:05 +00:00
..
api Add Apprise test support for notifications 2025-11-20 17:54:20 +00:00
components Fix memory bar width showing 100% instead of actual percentage 2025-12-02 00:08:05 +00:00
constants Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
hooks feat: improve responsive table layout with tighter columns 2025-11-25 20:37:28 +00:00
pages Align alert grouping defaults with backend 2025-11-22 17:11:52 +00:00
stores Fix host agent type badge flapping in UI 2025-11-30 22:07:40 +00:00
styles Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
test feat: enhance alerts system with tests and improved thresholds 2025-10-15 22:25:04 +00:00
types feat: improve responsive table layout with tighter columns 2025-11-25 20:37:28 +00:00
utils Refine memory visualization with StackedMemoryBar component 2025-11-29 13:48:30 +00:00
App.tsx Improve update integration diagnostics 2025-11-12 22:27:05 +00:00
constants.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
index.css refactor(ui): improve table column sizing and progress bar constraints 2025-11-27 12:09:12 +00:00
index.tsx Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
vite-env.d.ts Fix settings security tab navigation 2025-10-11 23:29:47 +00:00