From 3af5327c73cfc2c241a3201b9ffd08be0e015ba6 Mon Sep 17 00:00:00 2001 From: xnico31 <54291310+xnico31@users.noreply.github.com> Date: Fri, 10 Jan 2025 11:32:16 +0100 Subject: [PATCH] Update tig_pool_master.sh --- scripts/tig_pool_master.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/tig_pool_master.sh b/scripts/tig_pool_master.sh index 78bcc73..5daa875 100755 --- a/scripts/tig_pool_master.sh +++ b/scripts/tig_pool_master.sh @@ -11,6 +11,15 @@ if [ "$#" -ne 18 ]; then usage fi + +# Check the number of processor threads +cpu_threads=$(grep -c ^processor /proc/cpuinfo) +if [ "$cpu_threads" -lt 24 ]; then + echo "Error: Your system has less than 24 threads ($cpu_threads detected). Installation aborted your not able to Mine on TIGPool." + exit 1 +fi + + # Initialize variables for parameters id_slave="" nom_slave=""