This commit is contained in:
qgarnier 2018-01-02 10:36:17 +01:00
parent 40560537da
commit 346653afbf
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ sub run {
my $mem_overhead = centreon::vmware::common::simplify_number(centreon::vmware::common::convert_number($values->{$entity_value}->{$self->{connector}->{perfcounter_cache}->{'mem.overhead.average'}->{'key'} . ":"})) * 1024;
my $mem_state;
if (!defined($self->{no_memory_state})) {
$mem_state = centreon::vmware::common::simplify_number(centreon::vmware::common::convert_number($values->{$entity_value}->{$self->{connector}->{perfcounter_cache}->{'mem.state.latest'}->{'key'} . ":"}));
$mem_state = centreon::vmware::common::convert_number($values->{$entity_value}->{$self->{connector}->{perfcounter_cache}->{'mem.state.latest'}->{'key'} . ":"});
}
my $mem_free = $memory_size - $mem_used;
my $prct_used = $mem_used * 100 / $memory_size;