summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping.pm
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-09-13 13:09:43 +0200
committerNiko Tyni <ntyni@iki.fi>2005-09-13 13:09:43 +0200
commit954c1303bf9aa057100cd61f89e4797f6cf8d7c6 (patch)
tree66279cc04b38cd49ca23a53ec719407828b706d2 /lib/Smokeping.pm
parent480b4f632984a880237acd0c92fbc97ad5578ad7 (diff)
downloadsmokeping-954c1303bf9aa057100cd61f89e4797f6cf8d7c6.tar.gz
smokeping-954c1303bf9aa057100cd61f89e4797f6cf8d7c6.tar.xz
* lib/Smokeping.pm (trunk):
+ another edgetrigger fix
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r--lib/Smokeping.pm4
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;
}
}
}