forked from huawei/openGauss-server
change expression caculation to variable caculation
This commit is contained in:
parent
d6738a90cb
commit
ec3110ec63
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue