CPU [HP-UX]: Add partial support

This commit is contained in:
Muhammad Herdiansyah 2017-07-04 19:29:51 +07:00
parent 5cb04eccce
commit d233e5bb2e

View file

@ -1022,6 +1022,18 @@ get_cpu() {
# Get CPU cores. # Get CPU cores.
cores="$(sysconf NPROC_ONLN)" cores="$(sysconf NPROC_ONLN)"
;; ;;
"HP-UX")
# Get CPU name.
# This will be partial for now, because apparently hppa and
# IA64 has different approaches of how it should be handled.
# Get CPU speed.
# Same reasons as above.
# Get CPU cores.
cores="$(ioscan -k | grep -c "processor")"
;;
esac esac
if [[ "$speed" ]]; then if [[ "$speed" ]]; then