fix from previous commit

This commit is contained in:
garnier-quentin 2019-03-28 14:24:55 +01:00
parent 35c36ebd21
commit 7ec388983c
1 changed files with 2 additions and 4 deletions

View File

@ -1147,13 +1147,11 @@ 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;
}
push @{$self->{perfdatas}}, @$new_pfdata;
}
}