explorer/cpu_cores: Add support for OpenBSD
This commit is contained in:
parent
73784b04df
commit
0fc64a951c
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ case "$os" in
|
|||
sysctl -n hw.physicalcpu
|
||||
;;
|
||||
|
||||
"openbsd")
|
||||
sysctl -n hw.ncpuonline
|
||||
;;
|
||||
|
||||
*)
|
||||
if [ -r /proc/cpuinfo ]; then
|
||||
cores="$(grep "core id" /proc/cpuinfo | sort | uniq | wc -l)"
|
||||
|
|
Loading…
Reference in a new issue