Skip to content

Commit 2084f1e

Browse files
authored
Move DEBUG_MEMORY output to beginning of init (#2519)
1 parent ca2c15e commit 2084f1e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/start-configuration

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ if [ ! -e /data/eula.txt ]; then
4747
writeEula
4848
fi
4949

50+
if isTrue "${DEBUG_MEMORY:-false}"; then
51+
log "Memory usage and availability (in MB)"
52+
uname -a
53+
free -m
54+
fi
55+
5056
##########################################
5157
# Setup RCON password
5258

scripts/start-finalExec

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,6 @@ if isTrue "${USE_SIMD_FLAGS}"; then
192192
"
193193
fi
194194

195-
if isTrue "${DEBUG_MEMORY}"; then
196-
log "Memory usage and availability (in MB)"
197-
uname -a
198-
free -m
199-
fi
200-
201195
if [[ ${INIT_MEMORY} || ${MAX_MEMORY} ]]; then
202196
log "Setting initial memory to ${INIT_MEMORY:=${MEMORY}} and max to ${MAX_MEMORY:=${MEMORY}}"
203197
if [[ ${INIT_MEMORY} ]]; then

0 commit comments

Comments
 (0)