From e503e300c7ad12b79964297ff494aaf356692192 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Sat, 9 May 2020 23:43:36 -0500 Subject: [PATCH] should be KiB not kB if you're dividing by 1024 its a KiB not KB https://en.wikipedia.org/wiki/Kibibyte --- .local/bin/statusbar/nettraf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/nettraf b/.local/bin/statusbar/nettraf index d96d9791..3c41dfc7 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)"