mirror of
https://github.com/containers/podman.git
synced 2025-12-02 11:08:36 +08:00
fix(deps): update github.com/containers/common digest to 5547996
Signed-off-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
9
vendor/github.com/containers/common/pkg/sysinfo/numcpu_linux.go
generated
vendored
9
vendor/github.com/containers/common/pkg/sysinfo/numcpu_linux.go
generated
vendored
@@ -4,7 +4,6 @@
|
||||
package sysinfo
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"unsafe"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
@@ -34,11 +33,3 @@ func numCPU() int {
|
||||
}
|
||||
return ncpu
|
||||
}
|
||||
|
||||
// NumCPU returns the number of CPUs which are currently online
|
||||
func NumCPU() int {
|
||||
if ncpu := numCPU(); ncpu > 0 {
|
||||
return ncpu
|
||||
}
|
||||
return runtime.NumCPU()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user