diff options
author | Edward Betts <edward@4angle.com> | 2016-04-11 20:41:28 +0100 |
---|---|---|
committer | Edward Betts <edward@4angle.com> | 2016-04-11 20:41:28 +0100 |
commit | 6d0c30e56cf5a86d37c2305326ea88622334b546 (patch) | |
tree | 18f911bf43921db9966fe70bc70d6271ed57af67 /ranger | |
parent | 65b9bcea56c80d0b242546600452f9caf934f059 (diff) | |
download | ranger-6d0c30e56cf5a86d37c2305326ea88622334b546.tar.gz |
use % formatter
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 2 |
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') |