mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 16:33:36 +02:00
Fix #675
This commit is contained in:
parent
33c1401fd6
commit
61d5c45143
1 changed files with 2 additions and 2 deletions
|
|
@ -275,10 +275,10 @@ def free_space(self, end_session=True):
|
|||
if not iswindows:
|
||||
if self._main_prefix is not None:
|
||||
stats = os.statvfs(self._main_prefix)
|
||||
msz = stats.f_bsize * stats.f_bavail
|
||||
msz = stats.f_frsize * stats.f_bavail
|
||||
if self._card_prefix is not None:
|
||||
stats = os.statvfs(self._card_prefix)
|
||||
csz = stats.f_bsize * stats.f_bavail
|
||||
csz = stats.f_frsize * stats.f_bavail
|
||||
else:
|
||||
msz = self._windows_space(self._main_prefix)[1]
|
||||
csz = self._windows_space(self._card_prefix)[1]
|
||||
|
|
|
|||
Loading…
Reference in a new issue