mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Use %d for numbers instead of %s for string
This commit is contained in:
parent
e9b0b5613b
commit
334171bd7b
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user