From 66f2467332ac4524d54c46dd50c161ed013dad9a Mon Sep 17 00:00:00 2001 From: Shini31 Date: Fri, 24 Jul 2015 15:26:09 +0200 Subject: [PATCH] fix bug with perfdata --- centreon-plugins/cloud/docker/mode/memory.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/cloud/docker/mode/memory.pm b/centreon-plugins/cloud/docker/mode/memory.pm index 490e0a92d..a8b4b7ff6 100644 --- a/centreon-plugins/cloud/docker/mode/memory.pm +++ b/centreon-plugins/cloud/docker/mode/memory.pm @@ -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}, );