correct cpu vm

This commit is contained in:
garnier-quentin 2019-02-04 11:08:02 +01:00
parent c4af74bab5
commit 8b1c27b659
1 changed files with 2 additions and 2 deletions

View File

@ -113,9 +113,9 @@ sub run {
$cib = -1 if (!defined($cib) || $cib eq "");
$cia <=> $cib} keys %{$values->{$entity_value}}) {
my ($counter_id, $instance) = split /:/, $id;
next if ($self->{connector}->{perfcounter_cache}->{'cpu.usagemhz.average'}->{key} == $counter_id);
next if ($self->{connector}->{perfcounter_cache}->{'cpu.usagemhz.average'}->{key} != $counter_id);
if ($instance ne "") {
$data->{$entity_value}->{cpu}->{$instance} = centreon::vmware::common::simplify_number(centreon::vmware::common::convert_number($values->{$entity_value}->{$id} * 0.01));
$data->{$entity_value}->{cpu}->{$instance} = centreon::vmware::common::simplify_number(centreon::vmware::common::convert_number($values->{$entity_value}->{$id}));
}
}
}