mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
Add temp usage bar, fix disk percentage
This commit is contained in:
parent
868c16620f
commit
1e64cf02cd
2 changed files with 5 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue