summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorNacho-Dz <56203103+Nacho-Dz@users.noreply.github.com>2022-03-02 13:41:22 -0300
committerGitHub <noreply@github.com>2022-03-02 16:41:22 +0000
commitd9fb1ad73244b958ff143ea79b8bbd990b618478 (patch)
tree6faec0fb9395fa465ac3719b8acf576b83cb324e /.local/bin
parente8c7d19a2c44aa2889a9a692990723913d6b35ba (diff)
downloadeibhear-d9fb1ad73244b958ff143ea79b8bbd990b618478.tar.gz
eibhear-d9fb1ad73244b958ff143ea79b8bbd990b618478.tar.zst
eibhear-d9fb1ad73244b958ff143ea79b8bbd990b618478.zip
convert both $rx and $tx in one call to numfmt (#1082)
see numfmt(1) for details
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/statusbar/sb-nettraf2
1 files changed, 1 insertions, 1 deletions
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)