From 9a50f8d808e7e8218bb1ad1082c234fbe125cfe8 Mon Sep 17 00:00:00 2001 From: Johannes Truschnigg Date: Sun, 20 Mar 2022 11:36:51 +0100 Subject: [PATCH] Trim down NOOP debug output --- __sqm_lagthrottle.awk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/__sqm_lagthrottle.awk b/__sqm_lagthrottle.awk index 5cecc0a..a98aae9 100644 --- a/__sqm_lagthrottle.awk +++ b/__sqm_lagthrottle.awk @@ -241,7 +241,7 @@ function adjust_sqm(peername, latency) { } - # XXX TODO - this needs to get MUCH better! + # XXX TODO - this needs to get better! # 1.) FUDGE needs to be properly accounted in BW increase path # 2.) Try to dynamically compute/adapt FUDGE in no-load condition? # 3.) Does considering last2avg really make sense? @@ -261,7 +261,7 @@ function adjust_sqm(peername, latency) { return } if (rx_rate < (rx_rate_max * 0.1)) { # XXX TODO is this correct? - print "# " ts " line does not appear to be loaded, skipping futile SQM bw downgrade" + # print "# " ts " line does not appear to be loaded, skipping futile SQM bw downgrade" } else { if (bw_step_rx_cur > 0) { bw_step_rx_next = bw_step_rx_cur - 1 @@ -269,10 +269,9 @@ function adjust_sqm(peername, latency) { set_bw(IFACE_RX, STEPS_RX[bw_step_rx_next]) bw_step_rx_cur = bw_step_rx_next } else { - print "--- " ts " already at lowest bw rx step " bw_step_rx_cur " rx=" rx_rate " tx=" tx_rate + # print "--- " ts " already at lowest bw rx step " bw_step_rx_cur " rx=" rx_rate " tx=" tx_rate } } - # print "set adjust_old=" ts } not_increasing_count[peername] = 0 } else if (latency < (ping_prev[peername] + FUDGE / 2) && latency < (ping_pprev[peername] + FUDGE / 2) && ping_prev[peername] < (ping_pprev[peername] + FUDGE/2)) { -- 2.39.5