change expression caculation to variable caculation

This commit is contained in:
emmajiang 2020-07-02 17:31:53 +08:00
parent d6738a90cb
commit ec3110ec63
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -3317,7 +3317,7 @@ fi
# this expression is set up to avoid unnecessary integer overflow
# blocksize is already guaranteed to be a factor of 1024
RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
RELSEG_SIZE=$[(1024 / ${blocksize}) * ${segsize} * 1024]
{ $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
$as_echo "${segsize}GB" >&6; }