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
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 not conf.liveTest:
dataToStdout("\r%s\r" % (" " * self._width))
kb.prependFlag = False
else:
dataToStdout("\n")
def __str__(self):
"""