dhlaluku commented on a change in pull request #2795: kvm: Properly report
available memory to Management Server
URL: https://github.com/apache/cloudstack/pull/2795#discussion_r235698360
##########
File path:
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
##########
@@ -383,11 +378,11 @@ public LibvirtUtilitiesHelper
getLibvirtUtilitiesHelper() {
}
public CPUStat getCPUStat() {
- return _cpuStat;
+ return new CPUStat();
}
public MemStat getMemStat() {
- return _memStat;
+ return new MemStat(_dom0MinMem, _dom0OvercommitMem);
Review comment:
Same comment as above, the returned object instance is always different for
every method call
----------------------------------------------------------------
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