summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-10-18 07:22:40 +0200
committerNiko Tyni <ntyni@iki.fi>2005-10-18 07:22:40 +0200
commitaca01304a6c2638c9667711967b9ee1aa9bd09d9 (patch)
treec0668b78d1ba000b5e9297d8278506aaadf9e13d /lib
parent7c66130c076338076b19f9f9968851170ef5c29b (diff)
downloadsmokeping-aca01304a6c2638c9667711967b9ee1aa9bd09d9.tar.gz
smokeping-aca01304a6c2638c9667711967b9ee1aa9bd09d9.tar.xz
* (trunk,2.0)/
lib/Smokeping.pm, CHANGES: + get rid of 'Use of uninitialized value' messages when using the Avgratio matcher
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 3016f07..8462307 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -1107,7 +1107,7 @@ sub update_rrds($$$$$) {
next;
};
my $prevmatch = $tree->{prevmatch}{$_} || 0;
- my $match = &{$cfg->{Alerts}{$_}{sub}}($x);
+ my $match = &{$cfg->{Alerts}{$_}{sub}}($x) || 0; # Avgratio returns undef
my $edgetrigger = $cfg->{Alerts}{$_}{edgetrigger} eq 'yes';
my $what;
if ($edgetrigger and $prevmatch != $match) {