1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-27 10:50:10 +03:00

Fix vCenter VM poll bug

This commit is contained in:
Tino Vazquez 2016-05-04 19:49:19 +02:00
parent 4f17903404
commit fb77e34442

View File

@ -1667,7 +1667,7 @@ class VCenterVm
end
@used_memory = @summary.quickStats.hostMemoryUsage * 1024
cpuMhz = host.cpumhz
cpuMhz = @vm.runtime.host.cpumhz
@used_cpu =
((@summary.quickStats.overallCpuUsage.to_f / cpuMhz) * 100).to_s