diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-01-06 17:27:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-06 17:27:50 -0800 |
commit | b83b07cb4748f983c21b08b2ba015561cf664989 (patch) | |
tree | 049a5ed444ae3724ee1fd96f1d8d8f187f3d94c8 /pkg/sysinfo/numcpu.go | |
parent | 49a474c4b747bb83e36cda335ac3ae1ce5ae9f0a (diff) | |
parent | 43686072d3ff559abb0aea865509ae85f8a301de (diff) | |
download | podman-b83b07cb4748f983c21b08b2ba015561cf664989.tar.gz podman-b83b07cb4748f983c21b08b2ba015561cf664989.tar.bz2 podman-b83b07cb4748f983c21b08b2ba015561cf664989.zip |
Merge pull request #2082 from rhatdan/runc
Update vendor of runc
Diffstat (limited to 'pkg/sysinfo/numcpu.go')
-rw-r--r-- | pkg/sysinfo/numcpu.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/sysinfo/numcpu.go b/pkg/sysinfo/numcpu.go new file mode 100644 index 000000000..aeb1a3a80 --- /dev/null +++ b/pkg/sysinfo/numcpu.go @@ -0,0 +1,12 @@ +// +build !linux,!windows + +package sysinfo + +import ( + "runtime" +) + +// NumCPU returns the number of CPUs +func NumCPU() int { + return runtime.NumCPU() +} |