summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphil <phil>2011-11-20 17:48:58 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2011-11-20 18:00:19 +0000
commita2d313383cbb19c7724ba3f0f3c13c6212a92d6e (patch)
treeeeab2512e1c95e5bdcba2f93f78d2f8a1b44ec63
parente336cd64b4781d7d20fb52b84cc5a246a33a9113 (diff)
downloaddeluge-a2d313.zip
deluge-a2d313.tar.gz
deluge-a2d313.tar.bz2
Fix #1921 : GTKUI reports free disk space incorrectly
-rw-r--r--deluge/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/common.py b/deluge/common.py
index 4a2dfb8..a4bf45a 100644
--- a/deluge/common.py
+++ b/deluge/common.py
@@ -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):