fix for my imperfect calculations :)

This commit is contained in:
Miroslav Stampar 2010-05-21 11:41:49 +00:00
parent 9b91b30b69
commit 460a1ba872

View File

@ -261,8 +261,7 @@ class Connect:
logger.log(8, responseMsg)
if conf.cpuThrottle:
minThrottleDelay, maxThrottleDelay = 0.0001, 0.1
delay = minThrottleDelay + (maxThrottleDelay-minThrottleDelay) * conf.cpuThrottle
delay = 0.00001 * conf.cpuThrottle
time.sleep(delay)
return page, responseHeaders