From 701273ea91c3a81dea83e3310f3fb8c826f72c9c Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sat, 24 Apr 2021 23:01:44 +0200 Subject: [PATCH] Fixed total memory detection --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b1a8fd9..b2ff209 100644 --- a/install.sh +++ b/install.sh @@ -15,7 +15,7 @@ source ./ZPOOL_SIZE_SUM_BYTES rm -f ./ZPOOL_SIZE_SUM_BYTES # get information about available ram -MEM_TOTAL_BYTES=$(free -tb | tail -1 | cut -d ' ' -f3) +MEM_TOTAL_BYTES=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) * 1024)) # get values if defaults are set ARC_MAX_DEFAULT_BYTES=$(($MEM_TOTAL_BYTES / 2))