Skip to content

ProcessorCount: Return the container CPU count instead of the host count

On Linux containers (tested with LXC and Docker) getconf returns the host CPU count. Use nproc with a higher priority if available to get the container's allocated CPUs instead of the non-accessible host count.

Merge request reports