diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 2 |
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) { |