From: Johannes Truschnigg Date: Sat, 12 Mar 2022 13:27:51 +0000 (+0100) Subject: First shot at timeout detection/handling X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;h=7256bcf28fec826481d28345666bc2f0de195180;p=sqm_lagthrottle First shot at timeout detection/handling --- diff --git a/__lagdetect.awk b/__lagdetect.awk index 664cdbb..249928c 100644 --- a/__lagdetect.awk +++ b/__lagdetect.awk @@ -16,8 +16,17 @@ BEGIN { } -# 1.1.1.1 : [0], 1288 bytes, 10.3 ms (10.3 avg, 0% loss) # 192.168.1.50 : [0], timed out (NaN avg, 100% loss) + +/, timed out / { + pn=$1 + seq=$3 + bytes=0 + lat=9999 + print "TIMEOUT for " pn +} + +# 1.1.1.1 : [0], 1288 bytes, 10.3 ms (10.3 avg, 0% loss) /[0-9] bytes, [0-9]*.[0-9]* ms / { pn=$1 seq=$3