TermProgressBar: Fix to do 80 chars (not 81)
authorBrian Dolbec <dolsen@gentoo.org>
Mon, 9 Jul 2012 21:49:55 +0000 (14:49 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 9 Jul 2012 21:49:55 +0000 (14:49 -0700)
pym/portage/output.py

index fc6f6ebaaca88b2be26279733711a096ea84d84e..507adb0baac0c48b57fbd79a15259121b53db705 100644 (file)
@@ -737,9 +737,9 @@ class TermProgressBar(ProgressBar):
                square_brackets_width = 2
                if cols < percentage_str_width:
                        return ""
-               bar_space = cols - percentage_str_width - square_brackets_width
+               bar_space = cols - percentage_str_width - square_brackets_width - 1
                if self._desc:
-                       bar_space -= self._desc_max_length + 1
+                       bar_space -= self._desc_max_length
                if maxval == 0:
                        max_bar_width = bar_space-3
                        image = "    "