diskfree without root-reserved space (#285)

Signed-off-by: Jo <141064017+Arklaum@users.noreply.github.com>
This commit is contained in:
Jo 2025-07-29 21:24:17 +01:00 committed by GitHub
parent 4988a55ea5
commit c3cc2ddeae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2684,7 +2684,7 @@ def get_df(abspath: str, prune: bool) -> tuple[int, int, str]:
return (bavail.value, btotal.value, "")
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: