[yum-commits] output.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Mon Dec 9 16:59:26 UTC 2013
output.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 833be09639371c9e0c88bc125e40ef682bbc4a30
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Mon Dec 9 17:58:25 2013 +0100
Align the time formatting in the "Total" output with urlgrabber.progress
diff --git a/output.py b/output.py
index e42702e..041910c 100755
--- a/output.py
+++ b/output.py
@@ -1837,7 +1837,7 @@ to exit.
if dl_time <= 0: # This stops divide by zero, among other problems
dl_time = 0.01
ui_size = tl.add(' | %5sB' % self.format_number(remote_size))
- ui_time = tl.add(' %9s' % self.format_time(dl_time))
+ ui_time = tl.add(' %s' % self.format_time(dl_time, tl._llen > 80))
ui_end = tl.add(' ' * 5)
ui_bs = tl.add(' %5sB/s' % self.format_number(remote_size / dl_time))
msg = "%s%s%s%s%s" % (utf8_width_fill(_("Total"), tl.rest(), tl.rest()),
More information about the Yum-commits
mailing list