]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Systemd.pm
systemd: add CPUWeight encoding
[pve-common.git] / 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}];
-       } 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',