mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +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:
14
vendor/github.com/containers/common/pkg/sysinfo/numcpu.go
generated
vendored
14
vendor/github.com/containers/common/pkg/sysinfo/numcpu.go
generated
vendored
@@ -1,13 +1,13 @@
|
||||
//go:build !linux && !windows
|
||||
// +build !linux,!windows
|
||||
|
||||
package sysinfo
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
)
|
||||
import "runtime"
|
||||
|
||||
// NumCPU returns the number of CPUs
|
||||
// NumCPU returns the number of CPUs. On Linux and Windows, it returns
|
||||
// the number of CPUs which are currently online. On other platforms,
|
||||
// it returns [runtime.NumCPU].
|
||||
func NumCPU() int {
|
||||
if ncpu := numCPU(); ncpu > 0 {
|
||||
return ncpu
|
||||
}
|
||||
return runtime.NumCPU()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user