Minor fix

This commit is contained in:
Miroslav Stampar 2013-05-12 14:02:50 +02:00
parent d34286fe44
commit 6676eaf88f

View File

@ -94,8 +94,11 @@ class ProgressBar(object):
self._oldProgBar = self._progBar self._oldProgBar = self._progBar
dataToStdout("\r%s %d/%d%s" % (self._progBar, self._amount, self._max, (" ETA %s" % self._convertSeconds(int(eta))) if eta is not None else "")) dataToStdout("\r%s %d/%d%s" % (self._progBar, self._amount, self._max, (" ETA %s" % self._convertSeconds(int(eta))) if eta is not None else ""))
if self._amount >= self._max: if self._amount >= self._max:
dataToStdout("\r%s\r" % (" " * self._width)) if not conf.liveTest:
kb.prependFlag = False dataToStdout("\r%s\r" % (" " * self._width))
kb.prependFlag = False
else:
dataToStdout("\n")
def __str__(self): def __str__(self):
""" """