Putting 2 decimal places for debug messages with performed queries (e.g. to handle a problem with 0 seconds roundup)

This commit is contained in:
stamparm
2013-05-28 14:40:45 +02:00
parent bc4e1dab19
commit 6b280d8da4
5 changed files with 5 additions and 5 deletions

View File

@@ -593,7 +593,7 @@ def queryOutputLength(expression, payload):
start = time.time()
count, length = bisection(payload, lengthExprUnescaped, charsetType=CHARSET_TYPE.DIGITS)
debugMsg = "performed %d queries in %d seconds" % (count, calculateDeltaSeconds(start))
debugMsg = "performed %d queries in %.2f seconds" % (count, calculateDeltaSeconds(start))
logger.debug(debugMsg)
if length == " ":