From 954c1303bf9aa057100cd61f89e4797f6cf8d7c6 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Tue, 13 Sep 2005 11:09:43 +0000 Subject: * lib/Smokeping.pm (trunk): + another edgetrigger fix --- lib/Smokeping.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 60ddc6a..87225d8 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -1105,7 +1105,7 @@ sub update_rrds($$$$$) { do_log "WARNING: Alert '$_' did not resolve to a Sub Ref. Skipping\n"; next; }; - my $prevmatch = $cfg->{Alerts}{$_}{prevmatch} || 0; + my $prevmatch = $tree->{prevmatch}{$_} || 0; my $match = &{$cfg->{Alerts}{$_}{sub}}($x); my $edgetrigger = $cfg->{Alerts}{$_}{edgetrigger} eq 'yes'; my $what; @@ -1180,7 +1180,7 @@ ALERT } else { do_debuglog("Alert \"$_\": no match for target $name\n"); } - $cfg->{Alerts}{$_}{prevmatch} = $match; + $tree->{prevmatch}{$_} = $match; } } } -- cgit v1.2.3-24-g4f1b