]> git.proxmox.com Git - pve-container.git/commitdiff
pct cpuset: show effective values
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 20 Jul 2021 11:19:28 +0000 (13:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Jul 2021 11:21:25 +0000 (13:21 +0200)
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@proxmox.com>
src/PVE/CLI/pct.pm

index 23e8db051756363e3d23ffab6b2bd26508074136..254b3b3d97a44e59c0f7fad9a907c520f780de8c 100755 (executable)
@@ -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;