From: Stephen L Johnson Date: Tue, 6 Jun 2000 02:38:22 +0000 (+0000) Subject: fixed bug in checking code where $color var was not being set properly X-Git-Tag: spong-2_7-alpha7~20 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0479753526892d58729edf600b0d422a961fc4e;p=spong.git fixed bug in checking code where $color var was not being set properly --- 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;