1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix wan status

This commit is contained in:
Ycarus 2019-05-07 23:44:35 +02:00
parent 9edb2e447e
commit ffa995d59b

View file

@ -94,7 +94,7 @@ _ping() {
-c 1 \
-q \
"${host}"
) && echo "$ret" | grep -sq "0% packet loss" && {
) && echo "$ret" | grep -sq " 0% packet loss" && {
if [ "$localip" = "yes" ]; then
OMR_TRACKER_LATENCY=$(echo "$ret" | cut -d "/" -s -f5 | cut -d "." -f1)
_update_rto "$OMR_TRACKER_LATENCY"