mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 08:34:46 +02:00
fix from previous commit
This commit is contained in:
parent
29f9437dbc
commit
c40865837c
@ -1147,15 +1147,13 @@ sub apply_perfdata_extend {
|
|||||||
if ($extend->{type} == 1) {
|
if ($extend->{type} == 1) {
|
||||||
$self->{perfdatas}->[$i] = $new_perf;
|
$self->{perfdatas}->[$i] = $new_perf;
|
||||||
} else {
|
} else {
|
||||||
push @$new_pfdata, $new_perf;
|
push @$new_pfdata, $new_perf if (length($new_perf->{value}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (length($new_pfdata->{value})) {
|
|
||||||
push @{$self->{perfdatas}}, @$new_pfdata;
|
push @{$self->{perfdatas}}, @$new_pfdata;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
sub change_perfdata {
|
sub change_perfdata {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user