diff --git a/src/reset.sh b/src/reset.sh index 46536c9..900622f 100644 --- a/src/reset.sh +++ b/src/reset.sh @@ -50,6 +50,11 @@ fi [ -n "${CPU_CORES//[0-9 ]}" ] && error "Invalid amount of CPU_CORES: $CPU_CORES" && exit 15 +if [ "$CPU_CORES" -gt "$CORES" ]; then + warn "The amount for CPU_CORES (${CPU_CORES}) exceeds the amount of physical cores, so will be limited to ${CORES}." + CPU_CORES="$CORES" +fi + # Check system if [ ! -d "/dev/shm" ]; then