diff options
| author | rickyjon <40229914+rickyjon@users.noreply.github.com> | 2020-05-31 10:34:40 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-30 20:34:40 -0400 |
| commit | 5dbff5988208577d204d96045c161d872d29c2e1 (patch) | |
| tree | 06eb89ad39c39ca671c3afc69529c4c8ac9f4248 /.local/bin/statusbar | |
| parent | e9b0b5613bf03dcdf0609f48b7d514b6bfd7fd31 (diff) | |
| download | eibhear-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/statusbar')
| -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 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" |
