sunhaiyong1978 / Yongbao

一个基于交叉编译的Linux发行版。
23 stars 1 forks source link

Fixed JOBS caculation #1

Closed zjj closed 1 year ago

zjj commented 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.