diff options
Diffstat (limited to 'devices/cpu_other.go')
-rw-r--r-- | devices/cpu_other.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/devices/cpu_other.go b/devices/cpu_other.go new file mode 100644 index 0000000..95d183f --- /dev/null +++ b/devices/cpu_other.go @@ -0,0 +1,9 @@ +// +build !linux + +package devices + +import "github.com/shirou/gopsutil/cpu" + +func CpuCount() (int, error) { + return cpu.Counts(false) +} |