mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -38,8 +38,8 @@ Install_mysql()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
|
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
|
||||||
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
|
if [ "${MEM_INFO}" != "0" ];then
|
||||||
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
|
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
|
||||||
cpuCore="${MEM_INFO}"
|
cpuCore="${MEM_INFO}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ Install_mysql()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
|
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
|
||||||
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
|
if [ "${MEM_INFO}" != "0" ];then
|
||||||
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
|
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
|
||||||
cpuCore="${MEM_INFO}"
|
cpuCore="${MEM_INFO}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ Install_mysql()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
|
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
|
||||||
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
|
if [ "${MEM_INFO}" != "0" ];then
|
||||||
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
|
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
|
||||||
cpuCore="${MEM_INFO}"
|
cpuCore="${MEM_INFO}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ Install_mysql()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
|
MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}')
|
||||||
if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then
|
if [ "${MEM_INFO}" != "0" ];then
|
||||||
if [ "${cpuCore}" -gt "${MEM_INFO}" ];then
|
if [ "${cpuCore}" -lt "${MEM_INFO}" ];then
|
||||||
cpuCore="${MEM_INFO}"
|
cpuCore="${MEM_INFO}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user