Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6676eaf

Browse files
committed
Minor fix
1 parent d34286f commit 6676eaf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/core/progress.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ def draw(self, eta=None):
9494
self._oldProgBar = self._progBar
9595
dataToStdout("\r%s %d/%d%s" % (self._progBar, self._amount, self._max, (" ETA %s" % self._convertSeconds(int(eta))) if eta is not None else ""))
9696
if self._amount >= self._max:
97-
dataToStdout("\r%s\r" % (" " * self._width))
98-
kb.prependFlag = False
97+
if not conf.liveTest:
98+
dataToStdout("\r%s\r" % (" " * self._width))
99+
kb.prependFlag = False
100+
else:
101+
dataToStdout("\n")
99102

100103
def __str__(self):
101104
"""

0 commit comments

Comments
 (0)