From: Brian Dolbec Date: Mon, 9 Jul 2012 21:49:55 +0000 (-0700) Subject: TermProgressBar: Fix to do 80 chars (not 81) X-Git-Tag: v2.2.0_alpha117~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=108559b3df8ef31072c53afe07d4005f496caffb;p=portage.git TermProgressBar: Fix to do 80 chars (not 81) --- diff --git a/pym/portage/output.py b/pym/portage/output.py index fc6f6ebaa..507adb0ba 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -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 = " "