diff options
| author | Nacho-Dz <56203103+Nacho-Dz@users.noreply.github.com> | 2022-03-02 13:41:22 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-02 16:41:22 +0000 |
| commit | d9fb1ad73244b958ff143ea79b8bbd990b618478 (patch) | |
| tree | 6faec0fb9395fa465ac3719b8acf576b83cb324e /.local | |
| parent | e8c7d19a2c44aa2889a9a692990723913d6b35ba (diff) | |
| download | eibhear-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')
| -rwxr-xr-x | .local/bin/statusbar/sb-nettraf | 2 |
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) |
