diff options
author | phil <phil> | 2011-11-20 17:48:58 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2011-11-20 18:00:19 +0000 |
commit | a2d313383cbb19c7724ba3f0f3c13c6212a92d6e (patch) | |
tree | eeab2512e1c95e5bdcba2f93f78d2f8a1b44ec63 | |
parent | e336cd64b4781d7d20fb52b84cc5a246a33a9113 (diff) | |
download | deluge-a2d313.tar.gz deluge-a2d313.tar.bz2 deluge-a2d313.zip |
Fix #1921 : GTKUI reports free disk space incorrectly
-rw-r--r-- | deluge/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |