From 1a5c0cb9a5409a6214797273b5398ef0e849cd63 Mon Sep 17 00:00:00 2001 From: ptzz Date: Tue, 9 Jun 2015 20:36:48 +0200 Subject: Report free disk space correctly on Mac OS X --- ranger/gui/widgets/statusbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0