Commit 7c98452d authored by rubo77's avatar rubo77
Browse files

tq_max should be used on greater than or equal already

parent 7431ebfb
......@@ -82,18 +82,17 @@ if [ $TQ_LIMIT_ENABLED = 1 ]; then
MSG="TQ is $GATEWAY_TQ, "
if [ $GATEWAY_TQ -gt $TQ_LIMIT_MAX ]; then
if [ $GATEWAY_TQ -ge $TQ_LIMIT_MAX ]; then
CHECK=1
elif [ $GATEWAY_TQ -lt $TQ_LIMIT_MIN ]; then
CHECK=0
else
# this is just get a clean run if we are in-between the grace periode
echo "TQ is $GATEWAY_TQ, do nothing"
exit
exit 0
fi
else
MSG=""
CHECK="$(batctl gwl -H|grep -v "gateways in range"|wc -l)"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment