cleaner solution for the problem solved with last commit

This commit is contained in:
Miroslav Stampar
2011-04-18 14:51:48 +00:00
parent f5cff067c6
commit b79d4f70f3
3 changed files with 7 additions and 6 deletions

View File

@@ -1203,8 +1203,9 @@ def __cleanupOptions():
if conf.data:
conf.data = urldecode(conf.data)
if conf.timeSec == TIME_DEFAULT_DELAY:
conf.timeSec = int(conf.timeSec)
# to distinguish explicit usafe of --time-sec
if conf.timeSec is None:
conf.timeSec = TIME_DEFAULT_DELAY
kb.adjustTimeDelay = True
else:
kb.adjustTimeDelay = False

View File

@@ -75,8 +75,8 @@ UNION_STDEV_COEFF = 7
# length of queue for candidates for time delay adjustment
TIME_DELAY_CANDIDATES = 3
# default time delay in seconds (decimal places added to distinguish explicit usage of --time-sec)
TIME_DEFAULT_DELAY = 5.0001
# default time delay in seconds
TIME_DEFAULT_DELAY = 5
# HTTP timeout in silent mode
HTTP_SILENT_TIMEOUT = 3