mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +00:00
Fixed networkup/down but new bug now
This commit is contained in:
parent
86743660c7
commit
4be623eec5
3 changed files with 3 additions and 4 deletions
3
TODO.org
3
TODO.org
|
@ -12,10 +12,9 @@ Each module writes to stdout.
|
|||
* Todo List
|
||||
- Delay in archupdates module (if minutes divisible by 5/4)
|
||||
- Add dependencies like bc
|
||||
- Add hostname module
|
||||
|
||||
Bugs to fix:
|
||||
None
|
||||
- Fix networkup/down crazy values
|
||||
|
||||
Modules to Write:
|
||||
- We are more than welcome to accept ideas and pull requests for future
|
||||
|
|
|
@ -21,7 +21,7 @@ get_down_traffic()
|
|||
IFACES=$(ip -o link show | awk -F': ' '{print $2}')
|
||||
for IFACE in $IFACES; do
|
||||
if [ $IFACE != "lo" ]; then
|
||||
RECIEVE2=$(($(ip -s -c link show wlan0 | tail -n3 | head -n 1 | cut -d " " -f5) + $RECIEVE2))
|
||||
RECIEVE2=$(($(ip -s -c link show $IFACE | tail -n3 | head -n 1 | cut -d " " -f5) + $RECIEVE2))
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue