From 50d987cc2194945be50030fde179e293f692135d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 9 Sep 2024 11:55:34 +0200 Subject: [PATCH] suricata: Use getconf to determine the number of processors Signed-off-by: Michael Tremer --- src/initscripts/system/suricata | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata index 0c60c51198..06ad21afa4 100644 --- a/src/initscripts/system/suricata +++ b/src/initscripts/system/suricata @@ -51,24 +51,6 @@ enabled_ips_zones=() # PID file of suricata. PID_FILE="/var/run/suricata.pid" -# Function to get the amount of CPU cores of the system. -get_cpu_count() { - CPUCOUNT=0 - - # Loop through "/proc/cpuinfo" and count the amount of CPU cores. - while read line; do - [ "$line" ] && [ -z "${line%processor*}" ] && ((CPUCOUNT++)) - done