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…
Reference in New Issue