cpitalize constants

This commit is contained in:
2022-03-09 08:46:41 -05:00
parent cddf809759
commit 96eb380d58
2 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -423,12 +423,12 @@ def checkoverdue():
continue
timeout = hbdclass.Host.hosts[h].interval + grace
if conn.state == hbdclass.Connection.up and (now - conn.lastbeat) > timeout:
conn.newstate(hbdclass.Connection.overdue, now, grace)
conn.newstate(hbdclass.Connection.OVERDUE, now, grace)
pmsg.append(conn.afam)
if (
conn.state == hbdclass.Connection.overdue and (now - conn.lastbeat) > DROPOVERDUE
conn.state == hbdclass.Connection.OVERDUE and (now - conn.lastbeat) > DROPOVERDUE
):
conn.newstate(hbdclass.Connection.unknown, conn.lastbeat)
conn.newstate(hbdclass.Connection.UNKNOWN, conn.lastbeat)
if pmsg != []:
if h in watchhosts:
email("overdue", "%s overdue" % " and ".join(pmsg))