Update nettraf

fix jitter
This commit is contained in:
jamazi 2020-07-02 17:34:10 +03:00 committed by GitHub
parent ed3e85ce11
commit e6643f59fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,4 +25,4 @@ update() {
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
printf "🔻%sB 🔺%sB\\n" $(numfmt --to=iec $rx) $(numfmt --to=iec-i $tx)
printf "🔻%4sB 🔺%4sB\\n" $(numfmt --to=iec $rx) $(numfmt --to=iec-i $tx)