mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
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()
|
|
}
|