summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEdward Betts <edward@4angle.com>2016-05-07 09:46:35 +0100
committerEdward Betts <edward@4angle.com>2016-05-07 09:46:35 +0100
commitba6c7358470d34a95953547fd323a82ec10f401f (patch)
tree67aed2b685ceb7d3af39acd78a4c79bbb274ba54
parent6d0c30e56cf5a86d37c2305326ea88622334b546 (diff)
downloadranger-ba6c7358470d34a95953547fd323a82ec10f401f.tar.gz
bug fix for % formatter change
The values pos and max_pos are both integers, but we want to use floating point division.
-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 aa359c9a..8786af06 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -291,7 +291,7 @@ class StatusBar(Widget):
             elif pos >= max_pos:
                 right.add('Bot', base, 'bot')
             else:
-                right.add('{:0.0%}'.format(pos / max_pos),
+                right.add('{:0.0%}'.format(float(pos) / max_pos),
                         base, 'percentage')
         else:
             right.add('0/0  All', base, 'all')