[pve-devel] applied: [PATCH container] fix #2568: hotplug: fix typo 'cpu.shares'

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jan 27 18:50:56 CET 2020


On 1/27/20 6:44 PM, Oguz Bektas wrote:
> Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
> ---
>  src/PVE/LXC/Config.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
> index 760ec23..eec6b38 100644
> --- a/src/PVE/LXC/Config.pm
> +++ b/src/PVE/LXC/Config.pm
> @@ -1188,7 +1188,7 @@ sub vmconfig_hotplug_pending {
>  		PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.cfs_period_us", -1);
>  		PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.cfs_quota_us", -1);
>  	    } elsif ($opt eq 'cpuunits') {
> -		PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.shared", $confdesc->{cpuunits}->{default});
> +		PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.shares", $confdesc->{cpuunits}->{default});
>  	    } elsif ($opt =~ m/^net(\d)$/) {
>  		my $netid = $1;
>  		PVE::Network::veth_delete("veth${vmid}i$netid");
> 

applied, thanks!




More information about the pve-devel mailing list