convert both $rx and $tx in one call to numfmt (#1082)
see numfmt(1) for details
This commit is contained in:
parent
e8c7d19a2c
commit
d9fb1ad732
1 changed files with 1 additions and 1 deletions
|
@ -26,4 +26,4 @@ update() {
|
|||
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
|
||||
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
|
||||
|
||||
printf "🔻%4sB 🔺%4sB\\n" $(numfmt --to=iec $rx) $(numfmt --to=iec $tx)
|
||||
printf "🔻%4sB 🔺%4sB\\n" $(numfmt --to=iec $rx $tx)
|
||||
|
|
Loading…
Reference in a new issue