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>
This commit is contained in:
Ruben Bosch 2022-08-12 13:44:04 +02:00 committed by GitHub
parent 76f52af8f3
commit 696b93f421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -536,6 +536,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
}
public MemStat getMemStat() {
_memStat.refresh();
return _memStat;
}