[pve-devel] [PATCH container 2/2] pct cpuset: show effective values

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jul 20 13:19:28 CEST 2021


rather than the "desired" ones, this is more useful
(we could also show differences if there are any?)

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/PVE/CLI/pct.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/CLI/pct.pm b/src/PVE/CLI/pct.pm
index 23e8db0..254b3b3 100755
--- a/src/PVE/CLI/pct.pm
+++ b/src/PVE/CLI/pct.pm
@@ -712,9 +712,9 @@ __PACKAGE__->register_method ({
 
 	    my ($cpuset, $path);
 	    if (defined($path = $cgroup->get_path('cpuset', 1))) {
-		$cpuset = eval { PVE::CpuSet->new_from_path($path); };
+		$cpuset = eval { PVE::CpuSet->new_from_path($path, 1); };
 	    } elsif (defined($path = $cgroup->get_path(undef, 1))) {
-		$cpuset = eval { PVE::CpuSet->new_from_path($path); };
+		$cpuset = eval { PVE::CpuSet->new_from_path($path, 1); };
 	    } else {
 		# Container not running.
 		next;
-- 
2.30.2






More information about the pve-devel mailing list