From a2d313383cbb19c7724ba3f0f3c13c6212a92d6e Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 20 Nov 2011 17:48:58 +0000 Subject: Fix #1921 : GTKUI reports free disk space incorrectly --- deluge/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/common.py b/deluge/common.py index 4a2dfb801..a4bf45a4f 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): -- cgit