Minor patch (breaking lines on longer outputs - 100%)

This commit is contained in:
Miroslav Stampar
2017-09-26 13:18:37 +02:00
parent 222fd856fa
commit 62519eed04
3 changed files with 4 additions and 4 deletions

View File

@@ -517,7 +517,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
if conf.verbose in (1, 2) and not showEta and not conf.api:
_ = count - firstChar
output += '_' * (min(length, conf.progressWidth) - len(output))
status = ' %d/%d (%d%%)' % (_, length, round(100.0 * _ / length))
status = ' %d/%d (%d%%)' % (_, length, int(100.0 * _ / length))
output += status if _ != length else " " * len(status)
dataToStdout("\r[%s] [INFO] retrieved: %s" % (time.strftime("%X"), filterControlChars(output)))