From 99efde0d1ba92e75c12d5f4bf8e479504b9fe59e Mon Sep 17 00:00:00 2001 From: Johannes Truschnigg Date: Sat, 3 Sep 2022 15:50:27 +0200 Subject: [PATCH] Fix TX interface stats file path --- sqm_lagthrottle_suggest_config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5