From c0479753526892d58729edf600b0d422a961fc4e Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Tue, 6 Jun 2000 02:38:22 +0000 Subject: [PATCH] fixed bug in checking code where $color var was not being set properly --- src/spong-network.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spong-network.pl b/src/spong-network.pl index 323b120..23c1732 100755 --- a/src/spong-network.pl +++ b/src/spong-network.pl @@ -190,10 +190,10 @@ sub do_check { # If current status is not red, reset the critical level counter. if ($status eq 'red') { $crit_count += 1; + $color = 'red'; if ($crit_count < $CRIT_WARN_LEVEL) { $color = 'yellow' if $laststatus eq 'green'; } else { - $color = 'red'; $HOSTS{$host}->{'service'}->{$service}->{'laststatus'} = 'red'; } $summary = "($crit_count/$CRIT_WARN_LEVEL) " . $summary; -- 2.30.2