parameters: (lastQueryDuration, lowerStdLimit)
docstring: Provides tip for adjusting time delay in time-based data retrieval
docstring_summary: Provides tip for adjusting time delay in time-based data retrieval
docstring_tokens: Provides tip for adjusting time delay in time - based data retrieval
function: def adjustTimeDelay(lastQueryDuration, lowerStdLimit):
      """
      Provides tip for adjusting time delay in time-based data retrieval
      """
  
      candidate = 1 + int(round(lowerStdLimit))
  
      if candidate:
          kb.delayCandidates = [candidate] + kb.delayCandidates[:-1]
  
          if all((x == candidate for x in kb.delayCandidates)) and candidate < conf.timeSec:
              conf.timeSec = candidate
  
              infoMsg = "adjusting time delay to "
              infoMsg += "%d second%s due to good response times" % (conf.timeSec, 's' if conf.timeSec > 1 else '')
              logger.info(infoMsg)
function_tokens: def adjustTimeDelay ( lastQueryDuration , lowerStdLimit ) : candidate = 1 + int ( round ( lowerStdLimit ) ) if candidate : kb . delayCandidates = [ candidate ] + kb . delayCandidates [ : - 1 ] if all ( ( x == candidate for x in kb . delayCandidates ) ) and candidate < conf . timeSec : conf . timeSec = candidate infoMsg = "adjusting time delay to " infoMsg += "%d second%s due to good response times" % ( conf . timeSec , 's' if conf . timeSec > 1 else '' ) logger . info ( infoMsg )