From d40ee33ecee1bce1a85c259ab17b75811daee615 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Tue, 15 Mar 2022 15:34:45 -0400 Subject: [PATCH] upper case constants --- hbd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbd b/hbd index 15b6952..389aae2 100755 --- a/hbd +++ b/hbd @@ -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 (