github.com/gdevillele/moby@v1.13.0/pkg/sysinfo/numcpu.go (about) 1 // +build !linux,!windows 2 3 package sysinfo 4 5 import ( 6 "runtime" 7 ) 8 9 // NumCPU returns the number of CPUs 10 func NumCPU() int { 11 return runtime.NumCPU() 12 }