mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 06:10:23 -04:00
13 lines
200 B
Go
13 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()
|
|
}
|