]> git.proxmox.com Git - pve-manager.git/commitdiff
disable auto-ballon if shares is set to zero
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Dec 2012 13:02:43 +0000 (14:02 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Dec 2012 13:02:43 +0000 (14:02 +0100)
PVE/AutoBalloon.pm

index edf7332d98ff4edd82a08ef19fd0224bb00a734b..b4617952712b6113172ac841ad8fd8db73607c5a 100644 (file)
@@ -93,6 +93,8 @@ sub compute_alg1 {
        my $d = $vmstatus->{$vmid};
        next if !$d->{balloon}; # skip if balloon driver not running
        next if !$d->{balloon_min}; # skip if balloon value not set in config
+       next if defined($d->{shares}) && 
+           ($d->{shares} == 0); # skip if shares set to zero
 
        push @$idlist, $vmid;