From: Johannes Truschnigg Date: Sat, 3 Sep 2022 13:50:27 +0000 (+0200) Subject: Fix TX interface stats file path X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;h=99efde0d1ba92e75c12d5f4bf8e479504b9fe59e;p=sqm_lagthrottle Fix TX interface stats file path --- diff --git a/sqm_lagthrottle_suggest_config.sh b/sqm_lagthrottle_suggest_config.sh index e61c97f..10296ab 100755 --- a/sqm_lagthrottle_suggest_config.sh +++ b/sqm_lagthrottle_suggest_config.sh @@ -88,12 +88,12 @@ else fi read iface_tx -if ! [ -f /sys/class/net/"${iface_tx}"///statistics/rx_bytes ] +if ! [ -f /sys/class/net/"${iface_tx}"///statistics/tx_bytes ] then printf 'FATAL: No suitable TX network device could be identified at\n\t"%s"\n' "/sys/class/net/${iface_tx}" >&2 exit 1 fi -stats_tx=/sys/class/net/"${iface_tx}"/statistics/rx_bytes +stats_tx=/sys/class/net/"${iface_tx}"/statistics/tx_bytes printf '\nEffective RX interface: [%s] - TX interface: [%s]\n' "${iface_rx}" "${iface_tx}" _goon