File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
polybar-scripts/network-traffic Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ while true; do
44
44
bytes[now_rx_$interface ]=" $( cat /sys/class/net/" $interface " /statistics/rx_bytes) "
45
45
bytes[now_tx_$interface ]=" $( cat /sys/class/net/" $interface " /statistics/tx_bytes) "
46
46
47
- bytes_down=$(( (( ${bytes[now_rx_$interface]} - ${bytes[past_rx_$interface]} ) ) / INTERVAL))
48
- bytes_up=$(( (( ${bytes[now_tx_$interface]} - ${bytes[past_tx_$interface]} ) ) / INTERVAL))
47
+ bytes_down=$(( (${bytes[now_rx_$interface]} - ${bytes[past_rx_$interface]} ) / INTERVAL))
48
+ bytes_up=$(( (${bytes[now_tx_$interface]} - ${bytes[past_tx_$interface]} ) / INTERVAL))
49
49
50
- down=$(( (( "$down " + "$bytes_down " )) ))
51
- up=$(( (( "$up " + "$bytes_up " )) ))
50
+ down=$(( "$down " + "$bytes_down " ))
51
+ up=$(( "$up " + "$bytes_up " ))
52
52
53
53
bytes[past_rx_$interface ]=${bytes[now_rx_$interface]}
54
54
bytes[past_tx_$interface ]=${bytes[now_tx_$interface]}
You can’t perform that action at this time.
0 commit comments