Skip to content

Commit 0df5c2d

Browse files
committed
Fixes 6621 - Update host memory stats
Each time getMemStat() is called, a static value is returned. This value should instead be refreshed to return the actual memory used.
1 parent 4d41b6b commit 0df5c2d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ public CPUStat getCPUStat() {
536536
}
537537

538538
public MemStat getMemStat() {
539+
_memstat.refresh();
539540
return _memStat;
540541
}
541542

0 commit comments

Comments
 (0)