dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5dbff5988208577d204d96045c161d872d29c2e1
parent e9b0b5613bf03dcdf0609f48b7d514b6bfd7fd31
Author: rickyjon <40229914+rickyjon@users.noreply.github.com>
Date:   Sun, 31 May 2020 10:34:40 +1000

Use %d for numbers instead of %s for string (#666)


Diffstat:
M.local/bin/statusbar/nettraf | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/statusbar/nettraf b/.local/bin/statusbar/nettraf @@ -16,6 +16,6 @@ read -r rxprev txprev < "$logfile" rxcurrent="$(($(paste -d '+' /sys/class/net/[ew]*/statistics/rx_bytes)))" txcurrent="$(($(paste -d '+' /sys/class/net/[ew]*/statistics/tx_bytes)))" -printf "🔻%sKiB 🔺%sKiB\\n" "$(((rxcurrent-rxprev)/1024))" "$(((txcurrent-txprev)/1024))" +printf "🔻%dKiB 🔺%dKiB\\n" "$(((rxcurrent-rxprev)/1024))" "$(((txcurrent-txprev)/1024))" echo "$rxcurrent $txcurrent" > "$logfile"