add unit in explode perfdata

This commit is contained in:
garnier-quentin 2019-10-17 09:33:37 +02:00
parent eb72181b1d
commit 2feade0219
1 changed files with 1 additions and 1 deletions

View File

@ -1195,7 +1195,7 @@ sub apply_perfdata_explode {
}
foreach my $regexp (keys %{$self->{explode_perfdatas}}) {
if ($_->{label} =~ /$regexp/) {
$self->perfdata_add(label => $self->{explode_perfdatas}->{$regexp}, value => $_->{max});
$self->perfdata_add(label => $self->{explode_perfdatas}->{$regexp}, value => $_->{max}, unit => $_->{unit});
last;
}
}