ustcweizhou 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_r151056366
 
 

 ##########
 File path: server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java
 ##########
 @@ -297,8 +299,10 @@ public HostForMigrationResponse 
newHostForMigrationResponse(HostJoinVO host, Enu
                 Long mem = host.getMemReservedCapacity() + 
host.getMemUsedCapacity();
                 Long cpu = host.getCpuReservedCapacity() + 
host.getCpuReservedCapacity();
 
-                hostResponse.setMemoryAllocated(mem);
-                hostResponse.setMemoryTotal(host.getTotalMemory());
+                hostResponse.setMemoryTotal(mem);
 
 Review comment:
   this also needs to be fixed.

----------------------------------------------------------------
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

Reply via email to