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 luzpaz
parent 0408b3564a
commit 4241be0c85

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: