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 1010if [ -r "${CG_LIMIT_FILE}" ]; then
1111 MEMLIMIT_CG=$(awk '{print int($1 / 1024 / 1024 * 2 / 3)}' "${CG_LIMIT_FILE}")
1212
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
1517 fi
1618fi
1719
Original file line number Diff line number Diff line change 1818if [ -r "${CG_LIMIT_FILE}" ]; then
1919 MEMLIMIT_CG=$(awk '{print int($1 / 1024 / 1024 / 3)}' "${CG_LIMIT_FILE}")
2020
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
2325 fi
2426fi
2527
You can’t perform that action at this time.
0 commit comments