Skip to content

Commit 696b93f

Browse files
authored
kvm: update host memory stats (#6622)
Fixes #6621 Each time getMemStat() is called, a static value is returned. This value should instead be refreshed to return the actual memory used. Co-authored-by: Ruben Bosch <ruben.bosch@cldin.eu>
1 parent 76f52af commit 696b93f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)