소스 검색

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
Antoine Beaupré 9 년 전
부모
커밋
75c993b875
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      borg/helpers.py

+ 1 - 1
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):