mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Rounding drive stats for similar df performance.
This commit is contained in:
parent
a8b756b01a
commit
74c04fe5f6
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ def get_drive_status() -> list[dict]:
|
|||
usage = psutil.disk_usage(partition.mountpoint)
|
||||
drives.append({
|
||||
"mount": partition.mountpoint,
|
||||
"percent": int(usage.percent),
|
||||
"percent": round(usage.percent),
|
||||
"size": int(usage.total),
|
||||
"used": int(usage.used),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue