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 b1db633..396e969 100755
--- a/modules/networkuptraffic
+++ b/modules/networkuptraffic
@@ -12,7 +12,7 @@ get_up_traffic()
IFACES=$(ip -o link show | awk -F': ' '{print $2}')
for IFACE in $IFACES; do
if [ $IFACE != "lo" ]; then
- TRANSMIT1=$(($(ip -s -c link show wlan0 | tail -n1 | cut -d " " -f5) + TRANSMIT1))
+ TRANSMIT1=$(($(ip -s -c link show $IFACE | tail -n1 | cut -d " " -f5) + TRANSMIT1))
fi
done