From 0e278a52e1d4e775cc283e82624337106abb0e64 Mon Sep 17 00:00:00 2001 From: andreas Date: Thu, 21 Jul 2005 16:04:56 +0000 Subject: [PATCH] Hosts are global --- hbd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hbd b/hbd index 7e9116d..4d65546 100755 --- a/hbd +++ b/hbd @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: hbd,v 1.4 2005/07/21 16:02:39 andreas Exp $ +# $Id: hbd,v 1.5 2005/07/21 16:04:56 andreas Exp $ # Wait for heartbeat messages and act on them (or their absence) # import time, os, string, sys, socket, curses, atexit, select, SocketServer, getopt @@ -146,7 +146,8 @@ def initwin(): # # def checkoverdue(): - + global hosts + for h in hosts: if hosts[h].state == Host.down: continue