Fixed issues #27

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2018-06-27 08:33:04 +09:00
parent 4467f98325
commit 686fd98b77
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -81,7 +81,7 @@ io_test() {
calc_disk() {
local total_size=0
local array=$@
for size in "${array[@]}"
for size in ${array[@]}
do
[ "${size}" == "0" ] && size_t=0 || size_t=`echo ${size:0:${#size}-1}`
[ "`echo ${size:(-1)}`" == "K" ] && size=0