Lines Matching refs:threshold
45 def run_server(host, port, daemon, file, queue_size, threshold, drift):
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):
97 if delta > threshold:
112 def check_for_timeouts(threshold, check_drift):
118 if delta > threshold * 2:
132 [--threshold <heartbeat threshold>]
149 threshold = 10 # seconds late till alert
163 "file=", "server", "interval=", "threshold=", "verbose",
185 elif param in ["-t", "--threshold"]:
186 threshold = int(value)
202 run_server(host_address, host_port, is_daemon, file_server, queue_size, threshold, check_drift)