]> johannes.truschnigg.info Git - sqm_lagthrottle/commitdiff
More consistent output for set_bw()'s system()
authorJohannes Truschnigg <johannes@truschnigg.info>
Sun, 20 Mar 2022 10:33:04 +0000 (11:33 +0100)
committerJohannes Truschnigg <johannes@truschnigg.info>
Sun, 20 Mar 2022 10:33:04 +0000 (11:33 +0100)
__sqm_lagthrottle.awk

index 363f9b0589a43e2f11fe3cccca1b27f3cd2accaa..5cecc0adee2a144eaf78ed3f697945fd4cc8c0f0 100644 (file)
@@ -346,7 +346,7 @@ function update_ping_avgs(peername) {
 # Shell out to `tc` to update cake bandwidth settings
 function set_bw(dev, kbit) {
   adjust_old = ts
-  system("set -x; tc qdisc change root dev " dev " cake bandwidth " kbit "Kbit")
+  system("PS4='# SHELL: '; set -x; tc qdisc change root dev " dev " cake bandwidth " kbit "Kbit")
 }