1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

No more ping log

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-08-15 09:00:32 +02:00
parent 193bd806a9
commit 458603e683

View file

@ -98,7 +98,7 @@ _ping() {
-w "$OMR_TRACKER_TIMEOUT" \ -w "$OMR_TRACKER_TIMEOUT" \
-c 2 \ -c 2 \
-Q 184 \ -Q 184 \
"${host}" "${host}" 2>&1
) && echo "$ret" | grep -sq "bytes from" && { ) && echo "$ret" | grep -sq "bytes from" && {
if [ "$localip" = "yes" ]; then if [ "$localip" = "yes" ]; then
OMR_TRACKER_LATENCY=$(echo "$ret" | cut -d "/" -s -f5 | cut -d "." -f1) OMR_TRACKER_LATENCY=$(echo "$ret" | cut -d "/" -s -f5 | cut -d "." -f1)
@ -111,7 +111,7 @@ _ping() {
-w "$OMR_TRACKER_TIMEOUT" \ -w "$OMR_TRACKER_TIMEOUT" \
-c 2 \ -c 2 \
-Q 184 \ -Q 184 \
"${host}" "${host}" 2>&1
) && echo "$ret" | grep -sq "bytes from" && { ) && echo "$ret" | grep -sq "bytes from" && {
if [ "$localip" = "yes" ]; then if [ "$localip" = "yes" ]; then
OMR_TRACKER_LATENCY=$(echo "$ret" | cut -d "/" -s -f5 | cut -d "." -f1) OMR_TRACKER_LATENCY=$(echo "$ret" | cut -d "/" -s -f5 | cut -d "." -f1)