From 1159115dc50b603bbc13dc39c7b4193c507f6dfc Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 7 Mar 2014 21:57:13 +0100 Subject: gui.widgets/taskview: Higher precision in progressbar --- ranger/gui/widgets/taskview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/gui/widgets/taskview.py b/ranger/gui/widgets/taskview.py index 37c0f3c2..5d2aa475 100644 --- a/ranger/gui/widgets/taskview.py +++ b/ranger/gui/widgets/taskview.py @@ -51,7 +51,7 @@ class TaskView(Widget, Accumulator): descr = obj.get_description() if obj.progressbar_supported and obj.percent >= 0 \ and obj.percent <= 100: - self.addstr(y, 0, "%3d%% - %s" % \ + self.addstr(y, 0, "%3.2f%% - %s" % \ (obj.percent, descr), self.wid) wid = int(self.wid / 100.0 * obj.percent) self.color_at(y, 0, self.wid, tuple(clr)) -- cgit 1.4.1-2-gfad0