upper case constants
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user