自动重启
This commit is contained in:
parent
3e797c46ec
commit
ab1f58897a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user