Lines Matching refs:threshold
45 def run_server(host, port, daemon, file, queue_size, threshold, drift): argument
51 timeout_interval = threshold * 2
57 drift = check_heartbeat(heartbeat, local_timestamp, threshold, check_drift)
61 if local_timestamp - prev_check_timestamp > threshold * 2.0:
62 check_for_timeouts(threshold, check_drift)
92 def check_heartbeat(heartbeat, local_timestamp, threshold, check_drift): argument
97 if delta > threshold:
112 def check_for_timeouts(threshold, check_drift): argument
118 if delta > threshold * 2:
149 threshold = 10 # seconds late till alert variable
186 threshold = int(value) variable
202 run_server(host_address, host_port, is_daemon, file_server, queue_size, threshold, check_drift)