bug 11668: Do not apply 'cpu.overprovisioning.factor' while setting total_cpu in the op_host_capacity entry.

This commit is contained in:
Nitin 2011-10-10 19:22:49 +05:30
parent 73646ad4e4
commit c16b3eac54
1 changed files with 2 additions and 4 deletions

View File

@ -520,10 +520,8 @@ public class CapacityManagerImpl implements CapacityManager, StateListener<State
host.getPodId(),
host.getClusterId(),
usedCpu,
(long)(host.getCpus().longValue()
* host.getSpeed().longValue()
* _cpuOverProvisioningFactor),
CapacityVO.CAPACITY_TYPE_CPU);
(long)(host.getCpus().longValue() * host.getSpeed().longValue()),
CapacityVO.CAPACITY_TYPE_CPU);
capacity.setReservedCapacity(reservedCpu);
_capacityDao.persist(capacity);