mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-25 06:03:52 +03:00
vmstatus : use vcpus if defined
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
38babf816c
commit
d7c8364b22
@ -2402,6 +2402,7 @@ sub vmstatus {
|
||||
|
||||
$d->{cpus} = ($conf->{sockets} || 1) * ($conf->{cores} || 1);
|
||||
$d->{cpus} = $cpucount if $d->{cpus} > $cpucount;
|
||||
$d->{cpus} = $conf->{vcpus} if $conf->{vcpus};
|
||||
|
||||
$d->{name} = $conf->{name} || "VM $vmid";
|
||||
$d->{maxmem} = $conf->{memory} ? $conf->{memory}*(1024*1024) : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user