mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
numad: Divide cur_balloon by 1024 before passing it to numad
Numad expects MB by default.
This commit is contained in:
parent
d70f2e117a
commit
a00efddab6
@ -1773,7 +1773,7 @@ qemuGetNumadAdvice(virDomainDefPtr def)
|
||||
|
||||
cmd = virCommandNewArgList(NUMAD, "-w", NULL);
|
||||
virCommandAddArgFormat(cmd, "%d:%llu", def->vcpus,
|
||||
def->mem.cur_balloon);
|
||||
VIR_DIV_UP(def->mem.cur_balloon, 1024));
|
||||
|
||||
virCommandSetOutputBuffer(cmd, &output);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user