upper case constants

This commit is contained in:
2022-03-15 15:34:45 -04:00
parent 96eb380d58
commit d40ee33ece
+2 -2
View File
@@ -419,10 +419,10 @@ def checkoverdue():
pmsg = []
for c in hbdclass.Host.hosts[h].connections:
conn = hbdclass.Host.hosts[h].connections[c]
if conn.state == hbdclass.Connection.down:
if conn.state == hbdclass.Connection.DOWN:
continue
timeout = hbdclass.Host.hosts[h].interval + grace
if conn.state == hbdclass.Connection.up and (now - conn.lastbeat) > timeout:
if conn.state == hbdclass.Connection.UP and (now - conn.lastbeat) > timeout:
conn.newstate(hbdclass.Connection.OVERDUE, now, grace)
pmsg.append(conn.afam)
if (