mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Merge branch 'narukeh-patch-1'
This commit is contained in:
commit
307f408914
@ -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…
x
Reference in New Issue
Block a user