From a9327675455794078e17512786464b7a60dab196 Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 20 Nov 2011 17:48:58 +0000 Subject: [PATCH] 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 f7784da40..48df78164 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -492,7 +492,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):