still needed in some cases
This commit is contained in:
parent
5dbff59882
commit
88cc9e6c42
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ case "$BLOCK_BUTTON" in
|
|||
esac
|
||||
|
||||
logfile="${XDG_CACHE_HOME:-$HOME/.cache}/netlog"
|
||||
[ -f "$logfile" ] || echo "0 0" > "$logfile"
|
||||
read -r rxprev txprev < "$logfile"
|
||||
|
||||
rxcurrent="$(($(paste -d '+' /sys/class/net/[ew]*/statistics/rx_bytes)))"
|
||||
|
|
Loading…
Reference in a new issue