fix bug with perfdata

This commit is contained in:
Shini31 2015-07-24 15:26:09 +02:00
parent 37926e3e9a
commit 91935ee9fd
1 changed files with 2 additions and 2 deletions

View File

@ -153,8 +153,8 @@ sub run {
$self->{output}->perfdata_add(label => "used",
value => $webcontent->{memory_stats}->{usage},
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'),
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $total_size, cast_int => 1),
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $total_size, cast_int => 1),
min => 0,
max => $webcontent->{memory_stats}->{limit},
);