Loading src/config.sh +2 −4 Original line number Diff line number Diff line Loading @@ -35,16 +35,14 @@ fi # Check available memory as the very last step RAM_AVAIL=$(free -b | grep -m 1 Mem: | awk '{print $7}') RAM_TOTAL=$(free -b | grep -m 1 Mem: | awk '{print $2}') AVAIL_GB=$(( (RAM_AVAIL + 1073741823)/1073741824 )) TOTAL_GB=$(( (RAM_TOTAL + 1073741823)/1073741824 )) if (( (RAM_WANTED + 500000000) > RAM_AVAIL )); then error "Your configured RAM_SIZE of $WANTED_GB GB is higher than the $AVAIL_GB GB of memory available, please set a lower value." exit 15 exit 17 fi if (( (RAM_WANTED + 1950000000) > RAM_AVAIL )); then if (( (RAM_WANTED + 1450000000) > RAM_AVAIL )); then warn "your configured RAM_SIZE of $WANTED_GB GB is much too close to the $AVAIL_GB GB of memory available, please set a lower value." fi Loading src/reset.sh +1 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,7 @@ echo if (( (RAM_WANTED + 500000000) > RAM_AVAIL )); then error "Your configured RAM_SIZE of $WANTED_GB GB is higher than the $AVAIL_GB GB of memory available, please set a lower value." exit 15 exit 17 fi # Helper functions Loading Loading
src/config.sh +2 −4 Original line number Diff line number Diff line Loading @@ -35,16 +35,14 @@ fi # Check available memory as the very last step RAM_AVAIL=$(free -b | grep -m 1 Mem: | awk '{print $7}') RAM_TOTAL=$(free -b | grep -m 1 Mem: | awk '{print $2}') AVAIL_GB=$(( (RAM_AVAIL + 1073741823)/1073741824 )) TOTAL_GB=$(( (RAM_TOTAL + 1073741823)/1073741824 )) if (( (RAM_WANTED + 500000000) > RAM_AVAIL )); then error "Your configured RAM_SIZE of $WANTED_GB GB is higher than the $AVAIL_GB GB of memory available, please set a lower value." exit 15 exit 17 fi if (( (RAM_WANTED + 1950000000) > RAM_AVAIL )); then if (( (RAM_WANTED + 1450000000) > RAM_AVAIL )); then warn "your configured RAM_SIZE of $WANTED_GB GB is much too close to the $AVAIL_GB GB of memory available, please set a lower value." fi Loading
src/reset.sh +1 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,7 @@ echo if (( (RAM_WANTED + 500000000) > RAM_AVAIL )); then error "Your configured RAM_SIZE of $WANTED_GB GB is higher than the $AVAIL_GB GB of memory available, please set a lower value." exit 15 exit 17 fi # Helper functions Loading