4f0d95fa6e
Signed-off-by: Daniel Nephin <dnephin@docker.com>
12 lines
200 B
Go
12 lines
200 B
Go
// +build !linux,!windows
|
|
|
|
package sysinfo // import "github.com/docker/docker/pkg/sysinfo"
|
|
|
|
import (
|
|
"runtime"
|
|
)
|
|
|
|
// NumCPU returns the number of CPUs
|
|
func NumCPU() int {
|
|
return runtime.NumCPU()
|
|
}
|