Add temp usage bar, fix disk percentage

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

No files matched your search

+2 -1
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">