Update util.py

Signed-off-by: Jo <141064017+Arklaum@users.noreply.github.com>
This commit is contained in:
Jo 2025-07-29 20:51:06 +01:00 committed by GitHub
parent fbf17be203
commit f47a985c98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2679,7 +2679,7 @@ def get_df(abspath: str, prune: bool) -> tuple[Optional[int], Optional[int], str
return (bfree.value, None, "")
else:
sv = os.statvfs(ap)
free = sv.f_frsize * sv.f_bfree
free = sv.f_frsize * sv.f_bavail
total = sv.f_frsize * sv.f_blocks
return (free, total, "")
except Exception as ex: