summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/output.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index d2122e0b5..75e043483 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -455,8 +455,8 @@ class ProgressBar(object):
self._maxval = maxval
if value < 0:
value = 0
- elif value > maxval:
- value = maxval
+ elif value > self._maxval:
+ value = self._maxval
self._curval = value
def inc(self, n=1):