DaanHoogland commented on code in PR #11971:
URL: https://github.com/apache/cloudstack/pull/11971#discussion_r2732519212


##########
server/src/main/java/com/cloud/capacity/CapacityManagerImpl.java:
##########
@@ -938,7 +928,7 @@ public void doInTransactionWithoutResult(TransactionStatus 
status) {
 
                     capacity =
                         new CapacityVO(host.getId(), host.getDataCenterId(), 
host.getPodId(), host.getClusterId(), usedCpuFinal, host.getCpus().longValue() *
-                            host.getSpeed().longValue(), 
Capacity.CAPACITY_TYPE_CPU);
+                                host.getSpeed(), Capacity.CAPACITY_TYPE_CPU);

Review Comment:
   ```suggestion
                                   host.getSpeed() == null ? 0 : 
host.getSpeed(), Capacity.CAPACITY_TYPE_CPU);
   ```
   @harikrishna-patnala ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to