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)

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 )
provides tip for adjusting time delay in time-based data retrieval .