github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/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 }