This commit is contained in:
midoks
2022-08-01 11:52:46 +08:00
parent 9dce0b4808
commit 1d1cd31f5a
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ Install_mysql()
fi
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
if [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
cpuCore="${MEM_INFO}"
fi
else
+2 -2
View File
@@ -41,8 +41,8 @@ Install_mysql()
fi
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
if [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
cpuCore="${MEM_INFO}"
fi
else
+2 -2
View File
@@ -43,8 +43,8 @@ Install_mysql()
fi
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
if [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
cpuCore="${MEM_INFO}"
fi
else
+2 -2
View File
@@ -80,8 +80,8 @@ Install_mysql()
fi
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
if [ "${MEM_INFO}" != "0" ];then
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
cpuCore="${MEM_INFO}"
fi
else