cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] ustcweizhou commented on a change in pull request #2120: CLOUDSTACK-9665 List hosts api does not report correct cpu and memory?
Date Thu, 01 Jan 1970 00:00:00 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message