suggestions by Mike

Co-authored-by: Michael Hansen <hansen.mike@gmail.com>
This commit is contained in:
Aleksandr Oleinikov
2024-06-26 21:42:33 +03:00
committed by GitHub
co-authored by Michael Hansen
parent 2b394504a0
commit a80c7724a6
+1 -1
View File
@@ -46,7 +46,7 @@ marker='0.0.0'
threads="$(getconf _NPROCESSORS_ONLN)"
memory="$(LANG=C free -m|awk '/^Mem:/{print $2}')"
if [ "$memory" -le 512 ] && [ "$threads" -gt 2 ]; then
if [ "${memory}" -le 512 ] && [ "${threads}" -gt 2 ]; then
threads=2
fi