mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
parent
4467f98325
commit
686fd98b77
2
bench.sh
2
bench.sh
@ -81,7 +81,7 @@ io_test() {
|
|||||||
calc_disk() {
|
calc_disk() {
|
||||||
local total_size=0
|
local total_size=0
|
||||||
local array=$@
|
local array=$@
|
||||||
for size in "${array[@]}"
|
for size in ${array[@]}
|
||||||
do
|
do
|
||||||
[ "${size}" == "0" ] && size_t=0 || size_t=`echo ${size:0:${#size}-1}`
|
[ "${size}" == "0" ] && size_t=0 || size_t=`echo ${size:0:${#size}-1}`
|
||||||
[ "`echo ${size:(-1)}`" == "K" ] && size=0
|
[ "`echo ${size:(-1)}`" == "K" ] && size=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user