Ticket #1921: patch-common.py

File patch-common.py, 398 bytes (added by phil, 13 years ago)
Line 
1--- deluge/common.py.orig       2011-07-22 20:12:47.000000000 +0200
2+++ deluge/common.py    2011-08-08 18:06:44.000000000 +0200
3@@ -501,7 +501,7 @@
4         return (free * sectors * bytes)
5     else:
6         disk_data = os.statvfs(path.encode("utf8"))
7-        block_size = disk_data.f_bsize
8+        block_size = disk_data.f_frsize
9         return disk_data.f_bavail * block_size
10
11 def is_ip(ip):