summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorrickyjon <40229914+rickyjon@users.noreply.github.com>2020-05-31 10:34:40 +1000
committerGitHub <noreply@github.com>2020-05-30 20:34:40 -0400
commit5dbff5988208577d204d96045c161d872d29c2e1 (patch)
tree06eb89ad39c39ca671c3afc69529c4c8ac9f4248 /.local/bin
parente9b0b5613bf03dcdf0609f48b7d514b6bfd7fd31 (diff)
downloadeibhear-5dbff5988208577d204d96045c161d872d29c2e1.tar.gz
eibhear-5dbff5988208577d204d96045c161d872d29c2e1.tar.zst
eibhear-5dbff5988208577d204d96045c161d872d29c2e1.zip
Use %d for numbers instead of %s for string (#666)
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/statusbar/nettraf2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/nettraf b/.local/bin/statusbar/nettraf
index cca69aa..8ebe8b5 100755
--- 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"