File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1109,4 +1109,4 @@ def parseXmlFile(xmlFile, handler):
11091109 xfile .close ()
11101110
11111111def calculateDeltaSeconds (start , epsilon = 0.05 ):
1112- return int (time .time () - start + epsilon )
1112+ return int (time .time () - start + epsilon )
Original file line number Diff line number Diff line change @@ -878,32 +878,33 @@ def __setConfAttributes():
878878 debugMsg = "initializing the configuration"
879879 logger .debug (debugMsg )
880880
881- conf .cj = None
882- conf .dbmsConnector = None
883- conf .dbmsHandler = None
884- conf .dumpPath = None
885- conf .httpHeaders = []
886- conf .hostname = None
887- conf .loggedToOut = None
888- conf .matchRatio = None
889- conf .md5hash = None
890- conf .multipleTargets = False
891- conf .outputPath = None
892- conf .paramDict = {}
893- conf .parameters = {}
894- conf .path = None
895- conf .port = None
896- conf .redirectHandled = False
897- conf .retriesCount = 0
898- conf .scheme = None
899- #conf.seqMatcher = difflib.SequenceMatcher(lambda x: x in " \t")
900- conf .seqMatcher = difflib .SequenceMatcher (None )
901- conf .seqLock = None
902- conf .sessionFP = None
903- conf .start = True
904- conf .threadContinue = True
905- conf .threadException = False
906- conf .wFileType = None
881+ conf .cpuThrottleDelay = 0.001
882+ conf .cj = None
883+ conf .dbmsConnector = None
884+ conf .dbmsHandler = None
885+ conf .dumpPath = None
886+ conf .httpHeaders = []
887+ conf .hostname = None
888+ conf .loggedToOut = None
889+ conf .matchRatio = None
890+ conf .md5hash = None
891+ conf .multipleTargets = False
892+ conf .outputPath = None
893+ conf .paramDict = {}
894+ conf .parameters = {}
895+ conf .path = None
896+ conf .port = None
897+ conf .redirectHandled = False
898+ conf .retriesCount = 0
899+ conf .scheme = None
900+ #conf.seqMatcher = difflib.SequenceMatcher(lambda x: x in " \t")
901+ conf .seqMatcher = difflib .SequenceMatcher (None )
902+ conf .seqLock = None
903+ conf .sessionFP = None
904+ conf .start = True
905+ conf .threadContinue = True
906+ conf .threadException = False
907+ conf .wFileType = None
907908
908909 width = getConsoleWidth ()
909910
Original file line number Diff line number Diff line change @@ -262,6 +262,8 @@ def getPage(**kwargs):
262262
263263 logger .log (8 , responseMsg )
264264
265+ time .sleep (conf .cpuThrottleDelay )
266+
265267 return page , responseHeaders
266268
267269 @staticmethod
You can’t perform that action at this time.
0 commit comments