Skip to content

Commit 15c638a

Browse files
committed
some beautification
1 parent 7ec0428 commit 15c638a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/techniques/blind/inference.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ def downloadThread():
201201
output = '...' + output[3:]
202202
if endCharIndex - startCharIndex == conf.progressWidth:
203203
output = output[:-3] + '...'
204-
status = ' %d/%d' % (count, length)
204+
output += '_' * (min(length, conf.progressWidth) - len(output))
205+
status = ' %d/%d (%d%s)' % (count, length, round(100.0*count/length), '%')
205206
output += status if count != length else " "*len(status)
206207
iolock.acquire()
207208
dataToStdout("\r[%s] [INFO] retrieved: %s" % (time.strftime("%X"), output))

0 commit comments

Comments
 (0)