mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 11:32:41 +00:00
disable auto-ballon if shares is set to zero
This commit is contained in:
parent
53f13052ed
commit
c1bc34a337
@ -93,6 +93,8 @@ sub compute_alg1 {
|
|||||||
my $d = $vmstatus->{$vmid};
|
my $d = $vmstatus->{$vmid};
|
||||||
next if !$d->{balloon}; # skip if balloon driver not running
|
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 !$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;
|
push @$idlist, $vmid;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user