From cf6266e5458d46628fa6673e67f38e461b15ec7d Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 21 Sep 2008 20:09:34 +0000 Subject: [PATCH] remove fsize --- deluge/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index 0bbb8b233..91259e45d 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -391,8 +391,8 @@ def free_space(path): import win32api drive = path.split(":")[0] free = win32api.GetDiskFreeSpaceEx(drive)[0] - return fsize(free) + return free else: disk_data = os.statvfs(path) block_size = disk_data.f_bsize - return fsize(disk_data.f_bavail * block_size) + return disk_data.f_bavail * block_size