自动重启

This commit is contained in:
机器人总动员 2021-05-09 11:14:49 +08:00
parent 3e797c46ec
commit ab1f58897a

View File

@ -9,7 +9,7 @@ do
us=`free | awk 'NR==2{print $3}'`
to=`free | awk 'NR==2{print $2}'`
mem=`expr "scale=2;($us-$bu-$ca)/$to" |bc -l | cut -d. -f2`
if(($mem >= 10))
if(($mem >= 75))
then
echo "restart"
killall -9 python3