mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-22 21:24:53 +02:00
add unit in explode-perfdata-max option
This commit is contained in:
parent
2feade0219
commit
1d37eea6f4
@ -1190,7 +1190,7 @@ sub apply_perfdata_explode {
|
||||
foreach (@{$self->{perfdatas}}) {
|
||||
next if ($_->{max} eq '');
|
||||
if ($self->{explode_perfdata_total} == 2) {
|
||||
$self->perfdata_add(label => $_->{label} . '_max', value => $_->{max});
|
||||
$self->perfdata_add(label => $_->{label} . '_max', value => $_->{max}, unit => $_->{unit});
|
||||
next;
|
||||
}
|
||||
foreach my $regexp (keys %{$self->{explode_perfdatas}}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user