From 7ed91947ab0269c17770c4b1e39db49104ebf752 Mon Sep 17 00:00:00 2001 From: Sven Holz Date: Mon, 20 Jun 2022 17:03:07 +0200 Subject: [PATCH] ping timeout added --- Docker_Build/latency_monitor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Docker_Build/latency_monitor.py b/Docker_Build/latency_monitor.py index c29fc9c..0b15516 100644 --- a/Docker_Build/latency_monitor.py +++ b/Docker_Build/latency_monitor.py @@ -137,8 +137,8 @@ def main(): host_location = os.getenv('TARGET_LOCATION', 'unknown') # Create Thread - print("Creating thread for: %s, with interval: %s and location: %s" %(host, host_timer, host_location)) - thread = ThreadPing(MyDB, host, host_timer, host_location) + print("Creating thread for: %s, with interval: %s and location: %s" % (host, host_timeout, host_timer, host_location)) + thread = ThreadPing(MyDB, host, host_timeout, host_timer, host_location) my_threads.append(thread) thread.start() @@ -163,7 +163,7 @@ def main(): host_location = config.get('hosts_location', key, fallback="unknown") # Create Thread - print("Creating thread for: %s, with interval: %s and location: %s" %(host, host_timer, host_location)) + print("Creating thread for: %s, with timeout: %s, with interval: %s and location: %s" % (host, host_timeout, host_timer, host_location)) thread = ThreadPing(MyDB, host, host_timeout, host_timer, host_location) my_threads.append(thread) thread.start()