From c3cc2ddeaea4d2c762bce0335b6637ce341861cd Mon Sep 17 00:00:00 2001 From: Jo <141064017+Arklaum@users.noreply.github.com> Date: Tue, 29 Jul 2025 21:24:17 +0100 Subject: [PATCH] diskfree without root-reserved space (#285) Signed-off-by: Jo <141064017+Arklaum@users.noreply.github.com> --- copyparty/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/util.py b/copyparty/util.py index 86cf046b..14768e6e 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -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: