summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-05-07 16:05:11 +0200
committerDaniel Lange <DLange@git.local>2022-05-07 16:05:11 +0200
commit33973f7e40b6b24e219f5c9d19b205f6f9ddeed4 (patch)
treebde52bc487e442b55a9bdbb39ea6c7533bd8a7e0
parent0d53245cf94f2d1a16c87488da6e427bbc520be4 (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.c2
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy