aboutsummaryrefslogtreecommitdiff
path: root/modules/networkuptraffic
diff options
context:
space:
mode:
Diffstat (limited to 'modules/networkuptraffic')
-rwxr-xr-xmodules/networkuptraffic2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/networkuptraffic b/modules/networkuptraffic
index 6b002e6..b1db633 100755
--- a/modules/networkuptraffic
+++ b/modules/networkuptraffic
@@ -21,7 +21,7 @@ get_up_traffic()
IFACES=$(ip -o link show | awk -F': ' '{print $2}')
for IFACE in $IFACES; do
if [ $IFACE != "lo" ]; then
- TRANSMIT2=$(($(ip -s -c link show wlan0 | tail -n1 | cut -d " " -f5) + TRANSMIT2))
+ TRANSMIT2=$(($(ip -s -c link show $IFACE | tail -n1 | cut -d " " -f5) + TRANSMIT2))
fi
done