docker/pkg/sysinfo/numcpu.go

13 строки
151 B
Go

// +build !linux,!windows
package sysinfo
import (
"runtime"
)
// NumCPU returns the number of CPUs
func NumCPU() int {
return runtime.NumCPU()
}