X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FSystemd.pm;fp=src%2FPVE%2FSystemd.pm;h=e9712e0d3038d148b11fb6ed1674ccf72a9b79d5;hp=bcba5eb11ef745e758623a8bf583cef9f0540fc3;hb=39bf4956d4b228700840777cf1cc95fc9609c5fb;hpb=6d7c3065962d1920a1c407cc744c0677cff6f7db diff --git a/src/PVE/Systemd.pm b/src/PVE/Systemd.pm index bcba5eb..e9712e0 100644 --- a/src/PVE/Systemd.pm +++ b/src/PVE/Systemd.pm @@ -107,7 +107,7 @@ sub enter_systemd_scope { foreach my $key (keys %extra) { if ($key eq 'Slice' || $key eq 'KillMode') { push @{$properties}, [$key, $extra{$key}]; - } elsif ($key eq 'CPUShares') { + } elsif ($key eq 'CPUShares' || $key eq 'CPUWeight') { push @{$properties}, [$key, dbus_uint64($extra{$key})]; } elsif ($key eq 'CPUQuota') { push @{$properties}, ['CPUQuotaPerSecUSec',