getMaxCPU: fix cgroup path

Given this typo I am not sure if it has been tested.
This commit is contained in:
Jörg Thalheim 2022-12-04 18:22:11 +01:00
parent b4b13382f4
commit cccd57c022

View file

@ -730,7 +730,7 @@ unsigned int getMaxCPU()
auto cgroupFS = getCgroupFS();
if (!cgroupFS) return 0;
auto cgroups = getCgroups("/proc/self/cgroupp");
auto cgroups = getCgroups("/proc/self/cgroup");
auto cgroup = cgroups[""];
if (cgroup == "") return 0;