summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEdward Betts <edward@4angle.com>2016-04-11 20:41:28 +0100
committerEdward Betts <edward@4angle.com>2016-04-11 20:41:28 +0100
commit6d0c30e56cf5a86d37c2305326ea88622334b546 (patch)
tree18f911bf43921db9966fe70bc70d6271ed57af67
parent65b9bcea56c80d0b242546600452f9caf934f059 (diff)
downloadranger-6d0c30e56cf5a86d37c2305326ea88622334b546.tar.gz
use % formatter
-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 33aa4296..aa359c9a 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>.0f}%'.format(100.0 * pos / max_pos),
+                right.add('{:0.0%}'.format(pos / max_pos),
                         base, 'percentage')
         else:
             right.add('0/0  All', base, 'all')