summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-05-07 14:21:25 +0200
committerhut <hut@lepus.uberspace.de>2016-05-07 14:21:25 +0200
commit8e8068935b78ca594d0b8ea7c729b4b9e8967456 (patch)
treeef1bbc3f1b4b46a4a4f957c9c6467e44b72ee82e
parent3c88eefbc81c8fe906c4b7c97243edae0bcaf0cb (diff)
parentba6c7358470d34a95953547fd323a82ec10f401f (diff)
downloadranger-8e8068935b78ca594d0b8ea7c729b4b9e8967456.tar.gz
Merge branch 'patch-1' of https://github.com/EdwardBetts/ranger
-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..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>.0f}%'.format(100.0 * pos / max_pos),
+                right.add('{:0.0%}'.format(float(pos) / max_pos),
                         base, 'percentage')
         else:
             right.add('0/0  All', base, 'all')