Update python-node-exporter.py

This commit is contained in:
2023-03-08 09:35:23 -05:00
parent 2cee6a689d
commit c634b4640a
+5
View File
@@ -388,6 +388,7 @@ def start_thread(target_func):
auth_thread = start_thread(ZvmAuthHandler)
data_thread = start_thread(GetDataFunc)
stats_thread = start_thread(GetStatsFunc)
webserver_thread = start_thread(WebServer)
# loop indefinitely
while True:
@@ -404,3 +405,7 @@ while True:
# restart the thread
print("Starting GetStatsFunc Thread")
stats_thread = start_thread(GetStatsFunc)
if not webserver_thread.is_alive():
# restart the thread
print("Starting WebServer Thread")
webserver_thread = start_thread(WebServer)