upper case constants
This commit is contained in:
@@ -419,10 +419,10 @@ def checkoverdue():
|
|||||||
pmsg = []
|
pmsg = []
|
||||||
for c in hbdclass.Host.hosts[h].connections:
|
for c in hbdclass.Host.hosts[h].connections:
|
||||||
conn = hbdclass.Host.hosts[h].connections[c]
|
conn = hbdclass.Host.hosts[h].connections[c]
|
||||||
if conn.state == hbdclass.Connection.down:
|
if conn.state == hbdclass.Connection.DOWN:
|
||||||
continue
|
continue
|
||||||
timeout = hbdclass.Host.hosts[h].interval + grace
|
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)
|
conn.newstate(hbdclass.Connection.OVERDUE, now, grace)
|
||||||
pmsg.append(conn.afam)
|
pmsg.append(conn.afam)
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user