diff options
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r-- | lib/Smokeping.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } } |