quotes
This commit is contained in:
parent
daf2829167
commit
1d95b2210e
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ logfile="${XDG_CACHE_HOME:-$HOME/.cache}/netlog"
|
||||||
prevdata="$(cat "$logfile")"
|
prevdata="$(cat "$logfile")"
|
||||||
|
|
||||||
rxcurrent="$(($(paste -d '+' /sys/class/net/[ew]*/statistics/rx_bytes)))"
|
rxcurrent="$(($(paste -d '+' /sys/class/net/[ew]*/statistics/rx_bytes)))"
|
||||||
[ -f "$logfile" ] || echo "0 0" > $logfile
|
[ -f "$logfile" ] || echo "0 0" > "$logfile"
|
||||||
txcurrent="$(($(paste -d '+' /sys/class/net/[^lo]*/statistics/tx_bytes)))"
|
txcurrent="$(($(paste -d '+' /sys/class/net/[^lo]*/statistics/tx_bytes)))"
|
||||||
|
|
||||||
printf "🔻%sKiB 🔺%sKiB\\n" \
|
printf "🔻%sKiB 🔺%sKiB\\n" \
|
||||||
|
|
Loading…
Reference in a new issue