]> git.proxmox.com Git - pve-common.git/commitdiff
systemd: add CPUWeight encoding
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 6 Nov 2020 08:24:55 +0000 (09:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Nov 2020 08:31:11 +0000 (09:31 +0100)
src/PVE/Systemd.pm

index bcba5eb11ef745e758623a8bf583cef9f0540fc3..e9712e0d3038d148b11fb6ed1674ccf72a9b79d5 100644 (file)
@@ -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}];
     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',
            push @{$properties}, [$key, dbus_uint64($extra{$key})];
        } elsif ($key eq 'CPUQuota') {
            push @{$properties}, ['CPUQuotaPerSecUSec',