[Fix] `nvm install -s`: `aix`: detect number of threads on aix and not just number of processors

George Adams 2016-11-23 06:36:52 -05:00 committed by Jordan Harband
parent 26fec8035f
commit a7648ebd9f
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -1785,7 +1785,7 @@ nvm_get_make_jobs() {
elif [ "_$NVM_OS" = "_sunos" ]; then elif [ "_$NVM_OS" = "_sunos" ]; then
NVM_CPU_CORES="$(psrinfo | wc -l)" NVM_CPU_CORES="$(psrinfo | wc -l)"
elif [ "_$NVM_OS" = "_aix" ]; then elif [ "_$NVM_OS" = "_aix" ]; then
NVM_CPU_CORES="$(lsconf | command grep 'Number Of Processors:'| command awk '{print $4}')" NVM_CPU_CORES="$(pmcycles -m | wc -l)"
fi fi
if ! nvm_is_natural_num "$NVM_CPU_CORES" ; then if ! nvm_is_natural_num "$NVM_CPU_CORES" ; then
nvm_err 'Can not determine how many core(s) are available, running in single-threaded mode.' nvm_err 'Can not determine how many core(s) are available, running in single-threaded mode.'