From 75c993b875dde3d46ff2ee28709b56dbadd09118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 15 Oct 2015 22:23:53 -0400 Subject: [PATCH] simplify progress display we stop enforcing a minimum width for fields, it changes only on logarithmic boundaries, so not a big problem. string conversion is implicit this gives us a little more width for the path --- borg/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/helpers.py b/borg/helpers.py index 9650807c5..2153fd227 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -183,7 +183,7 @@ class Statistics: def show_progress(self, item=None, final=False): (columns, lines) = get_terminal_size((80, 24)) if not final: - msg = format(self, '{0.osize:9.9s} O {0.csize:9.9s} C {0.usize:9.9s} D {0.nfiles} N ') + msg = format(self, '{0.osize} O {0.csize} C {0.usize} D {0.nfiles} N ') path = remove_surrogates(item[b'path']) if item else '' space = columns - len(msg) if space < len('...') + len(path):