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

Set some status via tracker

This commit is contained in:
Ycarus 2018-08-24 13:34:09 +02:00
parent 910c6f5ee9
commit 77b071dd02
3 changed files with 21 additions and 3 deletions

View file

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