mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
Fix #1921 : GTKUI reports free disk space incorrectly
This commit is contained in:
parent
c29d3bb930
commit
a932767545
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ def free_space(path):
|
||||||
return (free * sectors * bytes)
|
return (free * sectors * bytes)
|
||||||
else:
|
else:
|
||||||
disk_data = os.statvfs(path.encode("utf8"))
|
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
|
return disk_data.f_bavail * block_size
|
||||||
|
|
||||||
def is_ip(ip):
|
def is_ip(ip):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue