Skip to content

Commit

Permalink
update nvm.sh to detect number of threads on aix and not just number of
Browse files Browse the repository at this point in the history
processors
  • Loading branch information
George Adams committed Nov 27, 2016
1 parent 7f1917d commit 8fba635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ nvm_get_make_jobs() {
elif [ "_$NVM_OS" = "_sunos" ]; then
NVM_CPU_CORES="$(psrinfo | wc -l)"
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
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.'
Expand Down

0 comments on commit 8fba635

Please sign in to comment.