ethminer_supervisor/util.py
def check(delta_seconds=3*60):
    """ Check if the service has a recent active time (within 3 minutes) """
    has_recent = False
    for line in get_ethminer_service_output(delta_seconds):
        time = parse_time(line)
        if time:
            if is_old_time(time, delta_seconds):
                logger.debug('Found old time {}'.format(time))
            else:
                logger.debug('Found recent time {}'.format(time))
                has_recent = True
    if not has_recent:
        logger.info("No recent times found for ethminer!")
    else:
        logger.info("Ethminer recent status time found :)")
    return has_recent
 Check if the service has a recent active time (within 3 minutes) 
Check if the service has a recent active time (within 3 minutes)
Check if the service has a recent active time ( within 3 minutes )
def check(delta_seconds=3*60):
    has_recent = False
    for line in get_ethminer_service_output(delta_seconds):
        time = parse_time(line)
        if time:
            if is_old_time(time, delta_seconds):
                logger.debug('Found old time {}'.format(time))
            else:
                logger.debug('Found recent time {}'.format(time))
                has_recent = True
    if not has_recent:
        logger.info("No recent times found for ethminer!")
    else:
        logger.info("Ethminer recent status time found :)")
    return has_recent
def check ( delta_seconds = 3 * 60 ) : has_recent = False for line in get_ethminer_service_output ( delta_seconds ) : time = parse_time ( line ) if time : if is_old_time ( time , delta_seconds ) : logger . debug ( 'Found old time {}' . format ( time ) ) else : logger . debug ( 'Found recent time {}' . format ( time ) ) has_recent = True if not has_recent : logger . info ( "No recent times found for ethminer!" ) else : logger . info ( "Ethminer recent status time found :)" ) return has_recent
Check if the service has a recent active time (within 3 minutes)
Check if the service has a recent active time ( within 3 minutes )
""" Check if the service has a recent active time (within 3 minutes) """
delta_seconds