about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptzz <ptzzptzzp@gmail.com>2015-06-09 20:36:48 +0200
committerptzz <ptzzptzzp@gmail.com>2015-06-09 20:36:48 +0200
commit1a5c0cb9a5409a6214797273b5398ef0e849cd63 (patch)
tree3c43a0102ff98f2cc2cf00d39eeac389798c357d
parent5c970b697745737e06e9eba297bed3baedde676c (diff)
downloadranger-1a5c0cb9a5409a6214797273b5398ef0e849cd63.tar.gz
Report free disk space correctly on Mac OS X
-rw-r--r--ranger/gui/widgets/statusbar.py2
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