mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 13:45:18 +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}}) {
|
foreach (@{$self->{perfdatas}}) {
|
||||||
next if ($_->{max} eq '');
|
next if ($_->{max} eq '');
|
||||||
if ($self->{explode_perfdata_total} == 2) {
|
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;
|
next;
|
||||||
}
|
}
|
||||||
foreach my $regexp (keys %{$self->{explode_perfdatas}}) {
|
foreach my $regexp (keys %{$self->{explode_perfdatas}}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user