pdion891 commented on a change in pull request #2120: CLOUDSTACK-9665 List
hosts api does not report correct cpu and memory?
URL: https://github.com/apache/cloudstack/pull/2120#discussion_r127478006
##########
File path: server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java
##########
@@ -154,8 +154,10 @@ public HostResponse newHostResponse(HostJoinVO host,
EnumSet<HostDetails> detail
Long mem = host.getMemReservedCapacity() +
host.getMemUsedCapacity();
Long cpu = host.getCpuReservedCapacity() +
host.getCpuUsedCapacity();
+ hostResponse.setMemoryTotal(mem);
+ Float totalMemorywithOverprovisioning=new
Float((host.getTotalMemory()*ApiDBUtils.getMemOverprovisioningFactor(host.getClusterId())));
+
hostResponse.setMemWithOverprovisioning(totalMemorywithOverprovisioning.toString());
Review comment:
Jira ticket created: https://issues.apache.org/jira/browse/CLOUDSTACK-10001
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services