diff --git a/easyinstall.sh b/easyinstall.sh index 49d8101187..7e1754fe8b 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -48,7 +48,13 @@ echo -e $logo CONNECT_TYPE="FULLSPEC" COMPILER="clang++" -CORES=1 +MEM=$(grep MemTotal /proc/meminfo | awk '{print $2}') +CORES=`expr $MEM / 450000` +if [ $CORES -gt $(nproc) ]; then + CORES=$(nproc) +elif [ $CORES -lt 1 ]; then + CORES=1 +fi USER=$(whoami) BASE=$(dirname "$(readlink -f "${0}")") CPP_PATH="$BASE/cpp" diff --git a/python/web/requirements.txt b/python/web/requirements.txt index 60758b1ce5..a11d5f408a 100644 --- a/python/web/requirements.txt +++ b/python/web/requirements.txt @@ -1,9 +1,10 @@ bjoern==3.2.2 -Flask==2.3.2 +Flask==2.3.3 Jinja2==3.1.2 protobuf==3.20.2 requests==2.31.0 simplepam==0.1.5 flask_babel==2.0.0 ua-parser==0.16.1 -vcgencmd==0.1.1 \ No newline at end of file +vcgencmd==0.1.1 +werkzeug==2.3.7