mirror of https://github.com/apache/cloudstack.git
bug 11668: Do not apply 'cpu.overprovisioning.factor' while setting total_cpu in the op_host_capacity entry.
This commit is contained in:
parent
73646ad4e4
commit
c16b3eac54
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue