Support bytes in calc bytes function.

This commit is contained in:
Clément Michaud 2021-05-17 23:20:55 +02:00
parent 7732427483
commit 307091b470

View file

@ -47,6 +47,9 @@ function calc_bytes {
TB) TB)
echo $NUM | awk '{ print $1 * 1024 * 1024 * 1024 * 1024 }' echo $NUM | awk '{ print $1 * 1024 * 1024 * 1024 * 1024 }'
;; ;;
B)
echo $NUM | awk '{ print $1 }'
;;
esac esac
} }