mirror of
https://github.com/moby/moby.git
synced 2026-08-10 17:15:06 +00:00
Deprecate in favor of `runtime.NumCPU` as the behavior is the same now. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
13 lines
303 B
Go
13 lines
303 B
Go
package sysinfo // import "github.com/docker/docker/pkg/sysinfo"
|
|
|
|
import (
|
|
"runtime"
|
|
)
|
|
|
|
// NumCPU returns the number of CPUs. It's the equivalent of [runtime.NumCPU].
|
|
//
|
|
// Deprecated: Use [runtime.NumCPU] instead. It will be removed in the next release.
|
|
func NumCPU() int {
|
|
return runtime.NumCPU()
|
|
}
|