Skip to content

Commit

Permalink
reverse bool status for emit_pingback
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefal committed Jul 10, 2021
1 parent 457dd0c commit 9b1f376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web_app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def manager():
And it sends various system informations to the web interface
"""
max_cpu_temp = 0
services_status = getServicesStatus(False)
services_status = getServicesStatus()
while True:
if connected_clients > 0:
updated_services_status = getServicesStatus(False)
updated_services_status = getServicesStatus(emit_pingback=True)
if services_status != updated_services_status:
services_status = repaint_services_button(updated_services_status)
socketio.emit("services status", json.dumps(services_status), namespace="/test")
Expand Down Expand Up @@ -636,7 +636,7 @@ def restartServices(restart_services_list):
getServicesStatus()

@socketio.on("get services status", namespace="/test")
def getServicesStatus(emit_pingback=True):
def getServicesStatus(emit_pingback=False):
"""
Get the status of services listed in services_list
(services_list is global)
Expand Down

0 comments on commit 9b1f376

Please sign in to comment.