From b0ee166158e1331c002a23d1ca093a999ffc347b Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Tue, 9 Jul 2002 21:41:47 +0000 Subject: [PATCH] Fixed file name problem for firstrun checking in the save_status(). Thanks for Brett Cundal for the fix. --- src/spong-server.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spong-server.pl b/src/spong-server.pl index d931cd3..f68479f 100755 --- a/src/spong-server.pl +++ b/src/spong-server.pl @@ -6,7 +6,7 @@ # There are one or more update processes that listen for status updates # from client programs. -# $Id: spong-server.pl,v 1.51 2002/07/09 17:58:55 sljohnson Exp $ +# $Id: spong-server.pl,v 1.52 2002/07/09 21:41:47 sljohnson Exp $ use lib "@@LIBDIR@@"; @@ -1242,9 +1242,9 @@ sub message_user { # If status has changed my $firstrun = 1; foreach my $c ('red','yellow','green','clear','purple') { - if( -f "$SPONGDB/$host/services/$service.$c" ) { $firstrun = 0; } + if( -f "$SPONGDB/$host/services/$service-$c" ) { $firstrun = 0; } } - if ( ! -f "$SPONGDB/$host/services/$service.$color" + if ( ! -f "$SPONGDB/$host/services/$service-$color" and ! ($firstrun and $color eq "green" ) ) { # If this is the first update, don't page on a green status!! &debug("change in state, messaging a human",2); -- 2.30.2