Add temp usage bar, fix disk percentage

This commit is contained in:
shamoon 2023-03-30 14:36:40 -07:00
parent 868c16620f
commit 1e64cf02cd
2 changed files with 5 additions and 1 deletions

View file

@ -44,7 +44,8 @@ export default function Disk({ options, expanded }) {
);
}
const percent = Math.round((data.drive.used / data.drive.size) * 100);
// data.drive.used not accurate?
const percent = Math.round(((data.drive.size - data.drive.available) / data.drive.size) * 100);
return (
<div className="flex-none flex flex-row items-center mr-3 py-1.5">