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 |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .eslintignore | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||