diff options
| author | Hekuran <62762955+narukeh@users.noreply.github.com> | 2020-05-30 17:29:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-30 17:29:41 +0200 |
| commit | 1d95b2210e4935c0dbf5a1ad04fbc9a4739de299 (patch) | |
| tree | 25b0a90334b2b4ceeb62b2b5ec21f3ad0acf9aba /.local | |
| parent | daf2829167571cec6b78a7a3abe511b90b40071d (diff) | |
| download | eibhear-1d95b2210e4935c0dbf5a1ad04fbc9a4739de299.tar.gz eibhear-1d95b2210e4935c0dbf5a1ad04fbc9a4739de299.tar.zst eibhear-1d95b2210e4935c0dbf5a1ad04fbc9a4739de299.zip | |
quotes
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/statusbar/nettraf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/nettraf b/.local/bin/statusbar/nettraf index a3c9f6f..f6c5779 100755 --- a/.local/bin/statusbar/nettraf +++ b/.local/bin/statusbar/nettraf @@ -14,7 +14,7 @@ logfile="${XDG_CACHE_HOME:-$HOME/.cache}/netlog" prevdata="$(cat "$logfile")" 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)))" printf "🔻%sKiB 🔺%sKiB\\n" \ |
