From 074e01c819f63a93339ceb062f7840e89cd457fd Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 28 Dec 2012 14:05:58 +0100 Subject: [PATCH] correctly set shares (allow 0) --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 20346765..10865ad7 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1964,7 +1964,7 @@ sub vmstatus { if ($conf->{balloon}) { $d->{balloon_min} = $conf->{balloon}*(1024*1024); - $d->{shares} = $conf->{shares} || 1000; + $d->{shares} = defined($conf->{shares}) ? $conf->{shares} : 1000; } $d->{uptime} = 0;