]> johannes.truschnigg.info Git - sqm_lagthrottle/commitdiff
Fix bandwidth typo
authorJohannes Truschnigg <johannes@truschnigg.info>
Sat, 3 Sep 2022 18:17:35 +0000 (20:17 +0200)
committerJohannes Truschnigg <johannes@truschnigg.info>
Sat, 3 Sep 2022 18:17:35 +0000 (20:17 +0200)
sqm_lagthrottle.sh
sqm_lagthrottle_suggest_config.sh

index 2c756e7dc051c74b52112fabb5943ee9e12612eb..ade83ef57cf05659ae5ac8f2a817be91a5107925 100755 (executable)
@@ -255,7 +255,7 @@ esac
 
 
 _restore_saved_bw() {
-  echo 'Restoring saved bandwith limits...' >&2
+  echo 'Restoring saved bandwidth limits...' >&2
   (
     set -x
     tc qdisc change root dev "${IFACE_RX}" cake bandwidth "${saved_bw_rx}"
index ad77fffb7b2c6429cc76c4e308dbb5ad0e1efe91..8628c7f3526a831cbcb3a990001e951a354b711c 100755 (executable)
@@ -91,7 +91,7 @@ iface_tx="${iface_rx/ifb4/}"
 if [ -e /sys/class/net/"${iface_tx}" ]
 then
   printf 'Auto-detected dependent upstream (tx) device:\n\t%s\n\n' "${iface_tx}" >&2
-  printf 'Possible choices:\n\t%s\n\n' "$(cd /sys/class/net/; for dev in *; do printf '%s ' "${dev}" >&2; done)" >&2
+  printf 'Possible choices:\n\t%s\n\n' "$(cd /sys/class/net/; for dev in *; do printf '%s ' "${dev}"; done)" >&2
   printf 'Please confirm this by supplying either this interface name again,\nor a custom value to replace it:\n\t' >&2
 else
   printf 'Failed to auto-detect a suitable upstream/tx interface.\nPlease key in the proper interface name.\n\t' >&2
@@ -118,14 +118,14 @@ echo "" >&2
 
 if ! [ ${bw_down_min}0 -lt ${bw_down_max}0 ]
 then
-  printf 'FATAL: Maximum shaping bandwith must be greater than the minimum.\n'
+  printf 'FATAL: Maximum shaping bandwidth must be greater than the minimum.\n'
   exit 1
 fi
 printf 'Effective RX bandwidth range: [%dKbps ... %dKbps]\n\n' "${bw_down_min}" "${bw_down_max}"
 _goon
 
 _h 'configure sqm_lagthrottle bias'
-printf 'sqm_lagthrottle can be configured to prioritize bandwith over latency,\nor vice versa.\n\nIf you would prefer to keep the dynamic target bandwidth high even in\nthe face of worsening latency/bufferbloat, please key in "bandwith" below.\n\nAll other inputs will lead to a preference for lower latency.\n\n\t'
+printf 'sqm_lagthrottle can be configured to prioritize bandwidth over latency,\nor vice versa.\n\nIf you would prefer to keep the dynamic target bandwidth high even in\nthe face of worsening latency/bufferbloat, please key in "bandwidth" below.\n\nAll other inputs will lead to a preference for lower latency.\n\n\t'
 read bw_or_lat_bias
 if [ x"${bw_or_lat_bias}" = xbandwidth ]
 then