From: Johannes Truschnigg Date: Sat, 12 Mar 2022 15:01:32 +0000 (+0100) Subject: Prefix non-essential output with "# " X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;h=a3e4edb3e82ba6e786407620bf155fafda9e917b;p=sqm_lagthrottle Prefix non-essential output with "# " --- diff --git a/__lagdetect.awk b/__lagdetect.awk index 53edfdd..2f90fce 100644 --- a/__lagdetect.awk +++ b/__lagdetect.awk @@ -1,12 +1,12 @@ #!/usr/bin/awk -f BEGIN { - print "THRESHOLD=" THRESHOLD - print "FUDGE=" FUDGE - print "PINGSLOTS=" PINGSLOTS + print "# THRESHOLD=" THRESHOLD + print "# FUDGE=" FUDGE + print "# PINGSLOTS=" PINGSLOTS split(PING_PEERS, pps, " ") for (pp in pps) { pn = pps[pp] - print "PEERS+=" pn + print "# PEERS+=" pn slotindex[pn]=0 # used to cycle thru PINGSLOTS per PEER have_baseline[pn]=0 # do we have enough data to make informed decisions? ping_min[pn]=65535 # minimum latency observed for PEER