From c8c032e75bc7881388193463c50c989e7b6f6d47 Mon Sep 17 00:00:00 2001 From: troman29 Date: Wed, 12 Apr 2023 11:49:19 +0300 Subject: [PATCH] Fix upgrade on hosts with small RAM size --- scripts/upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 65a4fc0a..b2999f80 100644 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -44,7 +44,7 @@ export CCACHE_DISABLE=1 cd ${bindir}/${repo} rm -f CMakeCache.txt memory=$(cat /proc/meminfo | grep MemAvailable | awk '{print $2}') -let "cpuNumber = memory / 2100000" +let "cpuNumber = memory / 2100000" || cpuNumber=1 cmake -DCMAKE_BUILD_TYPE=Release ${srcdir}/${repo} make -j ${cpuNumber} fift validator-engine lite-client pow-miner validator-engine-console generate-random-id dht-server func tonlibjson rldp-http-proxy systemctl restart validator