Files
homelab-monitor/apps/web/src
jhodgkin e72d403a30
CI / web (pull_request) Successful in 19s
CI / api (pull_request) Successful in 25s
Guard formatCapacity against NaN/negative/used>total and a rounding edge case
Adversarial review of PR #20 flagged two narrow edge cases: malformed
remote-script output could produce NaN and render literally, and a
used>total race could show e.g. "510/500 GB". Also fixed a cosmetic
rounding bug where a value like 99.96 took the one-decimal branch and
toFixed(1) rounded it up to "100.0" instead of "100".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-22 23:40:28 +00:00
..