mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
Update util.py
Signed-off-by: Jo <141064017+Arklaum@users.noreply.github.com>
This commit is contained in:
parent
fbf17be203
commit
f47a985c98
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue