Merge pull request #2137 from UrBnW/outputtypo

fix(output) max perfdata calc typo
This commit is contained in:
qgarnier 2020-08-06 13:34:29 +02:00 committed by GitHub
commit 72476a4b16
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/);