minor update

This commit is contained in:
Miroslav Stampar 2012-05-26 07:04:32 +00:00
parent ce077137c9
commit 4e6fcce9ca

View File

@ -279,11 +279,11 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
if not kb.originalTimeDelay: if not kb.originalTimeDelay:
kb.originalTimeDelay = conf.timeSec kb.originalTimeDelay = conf.timeSec
kb.timeValidCharsRun = 0
if (conf.timeSec - kb.originalTimeDelay) < MAX_TIME_REVALIDATION_STEPS: if (conf.timeSec - kb.originalTimeDelay) < MAX_TIME_REVALIDATION_STEPS:
errMsg = "invalid character detected. retrying.." errMsg = "invalid character detected. retrying.."
logger.error(errMsg) logger.error(errMsg)
kb.timeValidCharsRun = 0
conf.timeSec += 1 conf.timeSec += 1
warnMsg = "increasing time delay to %d second%s " % (conf.timeSec, 's' if conf.timeSec > 1 else '') warnMsg = "increasing time delay to %d second%s " % (conf.timeSec, 's' if conf.timeSec > 1 else '')