Merge branch 'narukeh-patch-1'
This commit is contained in:
commit
307f408914
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ case "$BLOCK_BUTTON" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
logfile="${XDG_CACHE_HOME:-$HOME/.cache}/netlog"
|
logfile="${XDG_CACHE_HOME:-$HOME/.cache}/netlog"
|
||||||
prevdata="$(cat "$logfile")"
|
prevdata="$(cat "$logfile")" || echo "0 0" > "$logfile"
|
||||||
|
|
||||||
rxcurrent="$(($(paste -d '+' /sys/class/net/[ew]*/statistics/rx_bytes)))"
|
rxcurrent="$(($(paste -d '+' /sys/class/net/[ew]*/statistics/rx_bytes)))"
|
||||||
txcurrent="$(($(paste -d '+' /sys/class/net/[^lo]*/statistics/tx_bytes)))"
|
txcurrent="$(($(paste -d '+' /sys/class/net/[^lo]*/statistics/tx_bytes)))"
|
||||||
|
|
Loading…
Reference in a new issue