mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-29 12:45:45 +00:00
Fix #1921 : GTKUI reports free disk space incorrectly
This commit is contained in:
parent
e336cd64b4
commit
a2d313383c
@ -501,7 +501,7 @@ def free_space(path):
|
||||
return (free * sectors * bytes)
|
||||
else:
|
||||
disk_data = os.statvfs(path.encode("utf8"))
|
||||
block_size = disk_data.f_bsize
|
||||
block_size = disk_data.f_frsize
|
||||
return disk_data.f_bavail * block_size
|
||||
|
||||
def is_ip(ip):
|
||||
|
Loading…
x
Reference in New Issue
Block a user