diff options
author | ptzz <ptzzptzzp@gmail.com> | 2015-06-09 20:36:48 +0200 |
---|---|---|
committer | ptzz <ptzzptzzp@gmail.com> | 2015-06-09 20:36:48 +0200 |
commit | 1a5c0cb9a5409a6214797273b5398ef0e849cd63 (patch) | |
tree | 3c43a0102ff98f2cc2cf00d39eeac389798c357d /ranger | |
parent | 5c970b697745737e06e9eba297bed3baedde676c (diff) | |
download | ranger-1a5c0cb9a5409a6214797273b5398ef0e849cd63.tar.gz |
Report free disk space correctly on Mac OS X
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index f5824d99..ee4df028 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -312,7 +312,7 @@ class StatusBar(Widget): def get_free_space(path): stat = os.statvfs(path) - return stat.f_bavail * stat.f_bsize + return stat.f_bavail * stat.f_frsize class Message(object): elapse = None |