From 0a864c6e173416e954c4160044141bf0854847df Mon Sep 17 00:00:00 2001 From: Johannes Truschnigg Date: Sat, 3 Sep 2022 20:17:35 +0200 Subject: [PATCH] Fix bandwidth typo --- sqm_lagthrottle.sh | 2 +- sqm_lagthrottle_suggest_config.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sqm_lagthrottle.sh b/sqm_lagthrottle.sh index 2c756e7..ade83ef 100755 --- a/sqm_lagthrottle.sh +++ b/sqm_lagthrottle.sh @@ -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}" diff --git a/sqm_lagthrottle_suggest_config.sh b/sqm_lagthrottle_suggest_config.sh index ad77fff..8628c7f 100755 --- a/sqm_lagthrottle_suggest_config.sh +++ b/sqm_lagthrottle_suggest_config.sh @@ -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 -- 2.39.5