From d9fb1ad73244b958ff143ea79b8bbd990b618478 Mon Sep 17 00:00:00 2001 From: Nacho-Dz <56203103+Nacho-Dz@users.noreply.github.com> Date: Wed, 2 Mar 2022 13:41:22 -0300 Subject: [PATCH] convert both $rx and $tx in one call to numfmt (#1082) see numfmt(1) for details --- .local/bin/statusbar/sb-nettraf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/sb-nettraf b/.local/bin/statusbar/sb-nettraf index eb7a73b..c71d38e 100755 --- a/.local/bin/statusbar/sb-nettraf +++ b/.local/bin/statusbar/sb-nettraf @@ -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)