From: Alexandre Derumier Date: Fri, 6 Nov 2020 08:24:55 +0000 (+0100) Subject: systemd: add CPUWeight encoding X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=39bf4956d4b228700840777cf1cc95fc9609c5fb systemd: add CPUWeight encoding --- 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',