Closed zjj closed 1 year ago
export JOBS=$(($(cat /proc/cpuinfo | grep processor | awk -F ':' '{ print $2 }' | sort -n -r | head -n1)*2))
One core was calculated less, especially when there is only one core, the JOBS value is 0.
export JOBS=$(($(cat /proc/cpuinfo | grep processor | awk -F ':' '{ print $2 }' | sort -n -r | head -n1)*2))
One core was calculated less, especially when there is only one core, the JOBS value is 0.