fix(output) max perfdata calc typo

This commit is contained in:
UrBnW 2020-08-06 13:32:17 +02:00
parent 0422b81d15
commit 7d2a151fc6
1 changed files with 1 additions and 1 deletions

View File

@ -1104,7 +1104,7 @@ sub apply_pfdata_max {
my ($self, %options) = @_;
my $pattern_pf;
eval "\$pattern_pf = \"$options{args}->{pattern_pf}\"";
eval "\$pattern_pf = '$options{args}->{pattern_pf}'";
my $max;
for (my $i = 0; $i < scalar(@{$self->{perfdatas}}); $i++) {
next if ($self->{perfdatas}->[$i]->{label} !~ /$pattern_pf/);