]> johannes.truschnigg.info Git - sqm_lagthrottle/commitdiff
Trim down NOOP debug output
authorJohannes Truschnigg <johannes@truschnigg.info>
Sun, 20 Mar 2022 10:36:51 +0000 (11:36 +0100)
committerJohannes Truschnigg <johannes@truschnigg.info>
Sun, 20 Mar 2022 10:36:51 +0000 (11:36 +0100)
__sqm_lagthrottle.awk

index 5cecc0adee2a144eaf78ed3f697945fd4cc8c0f0..a98aae943b64a3135ffb80613707273e1756011a 100644 (file)
@@ -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)) {