diff options
author | Daniel Lange <DLange@git.local> | 2022-05-07 16:05:11 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2022-05-07 16:05:11 +0200 |
commit | 33973f7e40b6b24e219f5c9d19b205f6f9ddeed4 (patch) | |
tree | bde52bc487e442b55a9bdbb39ea6c7533bd8a7e0 | |
parent | 0d53245cf94f2d1a16c87488da6e427bbc520be4 (diff) |
Limit active CPU count under LXC as well
Fixes the initial htoprc not being configured to amount for the host CPU count
-rw-r--r-- | linux/LinuxProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index cc60ee8b..06644887 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -265,7 +265,7 @@ static void LinuxProcessList_updateCPUcount(ProcessList* super) { if (Running_containerized) { /* LXC munges /proc/cpuinfo but not the /sys/devices/system/cpu/ files, * so limit the visible CPUs to what the guest has been configured to see: */ - currExisting = scanAvailableCPUsFromCPUinfo(this); + currExisting = active = scanAvailableCPUsFromCPUinfo(this); } #ifdef HAVE_SENSORS_SENSORS_H |