mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix bug with perfdata
This commit is contained in:
parent
37926e3e9a
commit
91935ee9fd
@ -153,8 +153,8 @@ sub run {
|
|||||||
|
|
||||||
$self->{output}->perfdata_add(label => "used",
|
$self->{output}->perfdata_add(label => "used",
|
||||||
value => $webcontent->{memory_stats}->{usage},
|
value => $webcontent->{memory_stats}->{usage},
|
||||||
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
|
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $total_size, cast_int => 1),
|
||||||
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'),
|
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $total_size, cast_int => 1),
|
||||||
min => 0,
|
min => 0,
|
||||||
max => $webcontent->{memory_stats}->{limit},
|
max => $webcontent->{memory_stats}->{limit},
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user