periodical commit

This commit is contained in:
Miroslav Stampar
2010-05-21 09:35:36 +00:00
parent 9c1d82c9f7
commit 68e13c3872
6 changed files with 113 additions and 7 deletions

View File

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