From 85aec2eaa93bc42dd0f8882ed74468aec364e6a0 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Fri, 24 Jan 2025 16:25:40 +0000 Subject: [PATCH] not double -1 --- resources/providers/realtime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/providers/realtime.rb b/resources/providers/realtime.rb index db8a5b8..c698ed7 100644 --- a/resources/providers/realtime.rb +++ b/resources/providers/realtime.rb @@ -67,7 +67,7 @@ # memory_kb = memory_kb - heap_realtime_memory_kb # Number of min[(cpu - 1),1] or 1 - processing_threads = cpu_num > 1 ? [[cpu_num - 1, 8].min.to_i - 1, 1].max : 1 if processing_threads.nil? + processing_threads = cpu_num > 1 ? [[cpu_num, 8].min.to_i - 1, 1].max : 1 if processing_threads.nil? # processing_threads = cpu_num > 1 ? [cpu_num - 1, 1].max : 1 if processing_threads.nil? # 256mb per threads or [40% of total RAM / (threads + 1)]