(lastQueryDuration, lowerStdLimit)
Provides tip for adjusting time delay in time-based data retrieval
Provides tip for adjusting time delay in time-based data retrieval
Provides tip for adjusting time delay in time - based data retrieval
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)
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 )