Update reset.sh
This commit is contained in:
parent
cf658fd18f
commit
0c31b63a45
1 changed files with 2 additions and 6 deletions
|
|
@ -81,15 +81,11 @@ echo
|
||||||
|
|
||||||
# Check memory
|
# Check memory
|
||||||
|
|
||||||
if (( RAM_WANTED > RAM_AVAIL )); then
|
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."
|
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 15
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( (RAM_WANTED + 1950000000) > RAM_AVAIL )); then
|
|
||||||
warn "your configured RAM_SIZE of $WANTED_GB GB is much too close to the $AVAIL_GB GB of memory available."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
|
|
||||||
isAlive() {
|
isAlive() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue