mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-05 17:18:42 +00:00
correctly set shares (allow 0)
This commit is contained in:
parent
ccd5438fa3
commit
074e01c819
@ -1964,7 +1964,7 @@ sub vmstatus {
|
|||||||
|
|
||||||
if ($conf->{balloon}) {
|
if ($conf->{balloon}) {
|
||||||
$d->{balloon_min} = $conf->{balloon}*(1024*1024);
|
$d->{balloon_min} = $conf->{balloon}*(1024*1024);
|
||||||
$d->{shares} = $conf->{shares} || 1000;
|
$d->{shares} = defined($conf->{shares}) ? $conf->{shares} : 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
$d->{uptime} = 0;
|
$d->{uptime} = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user