mirror of
https://github.com/containers/podman.git
synced 2026-10-06 02:02:21 -04:00
sysinfo.NumCPU already falls back to runtime.NumCPU in case the platform-specific sysinfo.numCPU returns 0, see https://github.com/containers/common/blob/554799639fc82afeddb9e39ec27a7b85382a6db3/pkg/sysinfo/numcpu.go#L8-L13 Also omit a second call to sysinfo.NumCPU and use the result from the earlier call. [NO NEW TESTS NEEDED] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>