File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 10
10
if [ -r "${CG_LIMIT_FILE}" ]; then
11
11
MEMLIMIT_CG=$(awk '{print int($1 / 1024 / 1024 * 2 / 3)}' "${CG_LIMIT_FILE}")
12
12
13
- if [ ${MEMLIMIT_CG} -lt ${MEMLIMIT} ]; then
14
- MEMLIMIT=${MEMLIMIT_CG}
13
+ if [ "${MEMLIMIT_CG}" -gt 0 ]; then
14
+ if [ "${MEMLIMIT_CG}" -lt "${MEMLIMIT}" ]; then
15
+ MEMLIMIT="${MEMLIMIT_CG}"
16
+ fi
15
17
fi
16
18
fi
17
19
Original file line number Diff line number Diff line change 18
18
if [ -r "${CG_LIMIT_FILE}" ]; then
19
19
MEMLIMIT_CG=$(awk '{print int($1 / 1024 / 1024 / 3)}' "${CG_LIMIT_FILE}")
20
20
21
- if [ ${MEMLIMIT_CG} -lt ${MEMLIMIT} ]; then
22
- MEMLIMIT=${MEMLIMIT_CG}
21
+ if [ "${MEMLIMIT_CG}" -gt 0 ]; then
22
+ if [ "${MEMLIMIT_CG}" -lt "${MEMLIMIT}" ]; then
23
+ MEMLIMIT="${MEMLIMIT_CG}"
24
+ fi
23
25
fi
24
26
fi
25
27
You can’t perform that action at this time.
0 commit comments