diff options
| author | Vlad Doster <mvdoster@gmail.com> | 2020-05-10 06:58:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-10 07:58:09 -0400 |
| commit | 8f05c7d79f91783d2cafe00a7d479eef9d652e8a (patch) | |
| tree | a859a82fdc2a1a70cd4b66cd6a19cf72f6503c76 /.local/bin/statusbar/nettraf | |
| parent | 6577acae890e18dc99244599fc85fa31053e400e (diff) | |
| download | eibhear-8f05c7d79f91783d2cafe00a7d479eef9d652e8a.tar.gz eibhear-8f05c7d79f91783d2cafe00a7d479eef9d652e8a.tar.zst eibhear-8f05c7d79f91783d2cafe00a7d479eef9d652e8a.zip | |
Status bar fixes for nettraf and memory (#627)
* More precise RAM measurement and fix of memory type
* Should be KiB
kB refers to
https://en.wikipedia.org/wiki/Kibibyte
Diffstat (limited to '.local/bin/statusbar/nettraf')
| -rwxr-xr-x | .local/bin/statusbar/nettraf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/nettraf b/.local/bin/statusbar/nettraf index d96d979..3c41dfc 100755 --- a/.local/bin/statusbar/nettraf +++ b/.local/bin/statusbar/nettraf @@ -16,7 +16,7 @@ txfile="${XDG_CACHE_HOME:-$HOME/.cache}/txlog" rxcurrent="$(cat /sys/class/net/*/statistics/rx_bytes | paste -sd '+' | bc)" txcurrent="$(cat /sys/class/net/*/statistics/tx_bytes | paste -sd '+' | bc)" -printf "🔻%skB 🔺%skB\\n" \ +printf "🔻%sKiB 🔺%sKiB\\n" \ "$(printf -- "(%s-%s)/1024\\n" "$rxcurrent" "$(cat "$rxfile")" | bc)" \ "$(printf -- "(%s-%s)/1024\\n" "$txcurrent" "$(cat "$txfile")" | bc)" |
