projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d7c306
)
systemd: add CPUWeight encoding
author
Alexandre Derumier
<aderumier@odiso.com>
Fri, 6 Nov 2020 08:24:55 +0000
(09:24 +0100)
committer
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Fri, 6 Nov 2020 08:31:11 +0000
(09:31 +0100)
src/PVE/Systemd.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/Systemd.pm
b/src/PVE/Systemd.pm
index bcba5eb11ef745e758623a8bf583cef9f0540fc3..e9712e0d3038d148b11fb6ed1674ccf72a9b79d5 100644
(file)
--- 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',