!13 change expression calculation to variable calculation

Merge pull request !13 from lishifu/master
This commit is contained in:
opengauss-bot
2020-07-02 18:14:21 +08:00
committed by Gitee

2
configure vendored
View File

@ -3317,7 +3317,7 @@ fi
# this expression is set up to avoid unnecessary integer overflow # this expression is set up to avoid unnecessary integer overflow
# blocksize is already guaranteed to be a factor of 1024 # 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 "$as_me:$LINENO: result: ${segsize}GB" >&5
$as_echo "${segsize}GB" >&6; } $as_echo "${segsize}GB" >&6; }