From 9866be8dba3e3637ad49d22a41551c097db65af7 Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Wed, 8 Mar 2023 18:40:41 -0500 Subject: [PATCH] Update python-node-exporter.py --- app/python-node-exporter.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/app/python-node-exporter.py b/app/python-node-exporter.py index ab0bf88..3fc5694 100644 --- a/app/python-node-exporter.py +++ b/app/python-node-exporter.py @@ -420,11 +420,17 @@ def start_thread(target_func): return thread # start the threads -print("Probe thread: " + str(probe_thread = start_thread(ThreadProbe))) -print("Auth thread: " + str(auth_thread = start_thread(ZvmAuthHandler))) -print("Data thread: " + str(data_thread = start_thread(GetDataFunc))) -print("Stats thread: " + str(stats_thread = start_thread(GetStatsFunc))) -print("Webserver thread: " + str(webserver_thread = start_thread(WebServer))) +probe_thread = start_thread(ThreadProbe) +auth_thread = start_thread(ZvmAuthHandler) +data_thread = start_thread(GetDataFunc) +stats_thread = start_thread(GetStatsFunc) +webserver_thread = start_thread(WebServer) + +print("Probe thread: " + str(probe_thread)) +print("Auth thread: " + str(auth_thread)) +print("Data thread: " + str(data_thread)) +print("Stats thread: " + str(stats_thread)) +print("Webserver thread: " + str(webserver_thread)) # loop indefinitely while True: