mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-23 04:54:51 +00:00
remove fsize
This commit is contained in:
parent
0712da0fd0
commit
cf6266e545
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue