Skip to content

Commit 7cf92ae

Browse files
committed
print total memory size with fraction part
1 parent 12e8f20 commit 7cf92ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/build-bifromq-starters/bin/bifromq-start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fi
133133

134134
echo "Using Java Version ${JAVA_VERSION} locating at '${JAVA}'"
135135
MEMORY=$(total_memory)
136-
echo -e "Total Memory: $(($MEMORY / 1024 / 1024 / 1024)) GB\n"
136+
echo -e "Total Memory: $(awk -v mem="$MEMORY" 'BEGIN {printf "%.1f", mem/1024/1024/1024}') GB\n"
137137

138138
# Perf options
139139
if [ -z "$JVM_PERF_OPTS" ]; then

0 commit comments

Comments
 (0)