still needed in some cases

This commit is contained in:
Luke Smith committed 2020-05-30 20:38:08 -04:00
1 parent 5dbff59882
commit 88cc9e6c42
1 file changed
+1
+1
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)))"