再次优化编译安装脚本

This commit is contained in:
midoks
2022-11-06 10:10:34 +08:00
parent 891a311be2
commit c3b77ee645
20 changed files with 80 additions and 41 deletions
+4 -2
View File
@@ -79,8 +79,10 @@ else
cpuCore="1"
fi
if [ "$cpuCore" -gt "1" ];then
cpuCore=`echo "$cpuCore" | awk '{printf("%.2f",($1)*0.8)}' | awk -F '.' '{print $1}'`
if [ "$cpuCore" -gt "2" ];then
cpuCore=`echo "$cpuCore" | awk '{printf("%.f",($1)*0.8)}'`
else
cpuCore="1"
fi
# ----- cpu end ------