mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-10 10:43:44 +03:00
some beautification
This commit is contained in:
parent
7ec04281dd
commit
15c638ac52
|
@ -201,7 +201,8 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
output = '...' + output[3:]
|
output = '...' + output[3:]
|
||||||
if endCharIndex - startCharIndex == conf.progressWidth:
|
if endCharIndex - startCharIndex == conf.progressWidth:
|
||||||
output = output[:-3] + '...'
|
output = output[:-3] + '...'
|
||||||
status = ' %d/%d' % (count, length)
|
output += '_' * (min(length, conf.progressWidth) - len(output))
|
||||||
|
status = ' %d/%d (%d%s)' % (count, length, round(100.0*count/length), '%')
|
||||||
output += status if count != length else " "*len(status)
|
output += status if count != length else " "*len(status)
|
||||||
iolock.acquire()
|
iolock.acquire()
|
||||||
dataToStdout("\r[%s] [INFO] retrieved: %s" % (time.strftime("%X"), output))
|
dataToStdout("\r[%s] [INFO] retrieved: %s" % (time.strftime("%X"), output))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user