summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorintroom <i@introo.me>2013-12-28 15:33:57 +0800
committerintroom <i@introo.me>2013-12-28 15:33:57 +0800
commit2d4c3048ed73127f9c8becef68317a313e84647d (patch)
tree4b786eaf47e2c1b75b989c6835c1107ebeed5dd4
parent1bf58392c6b26d9e6d4c5886a51c94d2526cd767 (diff)
downloadranger-2d4c3048ed73127f9c8becef68317a313e84647d.tar.gz
fix improper display of disk free size on os x
-rw-r--r--ranger/core/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/environment.py b/ranger/core/environment.py
index 701870e1..562212d4 100644
--- a/ranger/core/environment.py
+++ b/ranger/core/environment.py
@@ -108,4 +108,4 @@ class Environment(SettingsAware, FileManagerAware, SignalDispatcher):
 
     def get_free_space(self, path):
         stat = os.statvfs(path)
-        return stat.f_bavail * stat.f_bsize
+        return stat.f_bavail * stat.f_frsize