still needed in some cases

This commit is contained in:
Luke Smith 2020-05-30 20:38:08 -04:00
parent 5dbff59882
commit 88cc9e6c42
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -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)))"