Merge pull request #7401 from Mic92/cgroup-typo

getMaxCPU: fix cgroup path
This commit is contained in:
Eelco Dolstra 2022-12-05 17:53:05 +01:00 committed by GitHub
commit a21d9523b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;