mirror of https://github.com/xzeldon/htop.git
Limit active CPU count under LXC as well
Fixes the initial htoprc not being configured to amount for the host CPU count
This commit is contained in:
parent
0d53245cf9
commit
33973f7e40
|
@ -265,7 +265,7 @@ static void LinuxProcessList_updateCPUcount(ProcessList* super) {
|
||||||
if (Running_containerized) {
|
if (Running_containerized) {
|
||||||
/* LXC munges /proc/cpuinfo but not the /sys/devices/system/cpu/ files,
|
/* 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: */
|
* 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
|
#ifdef HAVE_SENSORS_SENSORS_H
|
||||||
|
|
Loading…
Reference in New Issue