Skip to content

Commit c16b3ea

Browse files
bug 11668: Do not apply 'cpu.overprovisioning.factor' while setting total_cpu in the op_host_capacity entry.
1 parent 73646ad commit c16b3ea

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎server/src/com/cloud/capacity/CapacityManagerImpl.java‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,8 @@ public void updateCapacityForHost(HostVO host){
520520
host.getPodId(),
521521
host.getClusterId(),
522522
usedCpu,
523-
(long)(host.getCpus().longValue()
524-
* host.getSpeed().longValue()
525-
* _cpuOverProvisioningFactor),
526-
CapacityVO.CAPACITY_TYPE_CPU);
523+
(long)(host.getCpus().longValue() * host.getSpeed().longValue()),
524+
CapacityVO.CAPACITY_TYPE_CPU);
527525
capacity.setReservedCapacity(reservedCpu);
528526
_capacityDao.persist(capacity);
529527

0 commit comments

Comments
 (0)