This commit is contained in:
garnier-quentin 2020-09-09 10:10:36 +02:00
parent 6f1d5e3c10
commit 8365f1a977
1 changed files with 4 additions and 4 deletions

View File

@ -1087,7 +1087,7 @@ sub apply_pfdata_min {
my ($self, %options) = @_;
my $pattern_pf;
eval "\$pattern_pf = '$options{args}->{pattern_pf}'";
eval "\$pattern_pf = \"$options{args}->{pattern_pf}\"";
my $min;
for (my $i = 0; $i < scalar(@{$self->{perfdatas}}); $i++) {
next if ($self->{perfdatas}->[$i]->{label} !~ /$pattern_pf/);
@ -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/);
@ -1121,7 +1121,7 @@ sub apply_pfdata_sum {
my ($self, %options) = @_;
my $pattern_pf;
eval "\$pattern_pf = '$options{args}->{pattern_pf}'";
eval "\$pattern_pf = \"$options{args}->{pattern_pf}\"";
my ($sum, $num) = (0, 0);
for (my $i = 0; $i < scalar(@{$self->{perfdatas}}); $i++) {
next if ($self->{perfdatas}->[$i]->{label} !~ /$pattern_pf/);
@ -1138,7 +1138,7 @@ sub apply_pfdata_average {
my ($self, %options) = @_;
my $pattern_pf;
eval "\$pattern_pf = '$options{args}->{pattern_pf}'";
eval "\$pattern_pf = \"$options{args}->{pattern_pf}\"";
my ($sum, $num) = (0, 0);
for (my $i = 0; $i < scalar(@{$self->{perfdatas}}); $i++) {
next if ($self->{perfdatas}->[$i]->{label} !~ /$pattern_pf/);