fix from previous commit

This commit is contained in:
garnier-quentin 2019-03-28 14:24:55 +01:00
parent 29f9437dbc
commit c40865837c

View File

@ -1147,15 +1147,13 @@ sub apply_perfdata_extend {
if ($extend->{type} == 1) {
$self->{perfdatas}->[$i] = $new_perf;
} 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;
}
}
}
sub change_perfdata {
my ($self, %options) = @_;