Support bytes in calc bytes function.
This commit is contained in:
parent
7732427483
commit
307091b470
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ function calc_bytes {
|
|||
TB)
|
||||
echo $NUM | awk '{ print $1 * 1024 * 1024 * 1024 * 1024 }'
|
||||
;;
|
||||
B)
|
||||
echo $NUM | awk '{ print $1 }'
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue