Skip to content

Commit

Permalink
not double -1
Browse files Browse the repository at this point in the history
  • Loading branch information
ljblancoredborder committed Jan 24, 2025
1 parent 6237a2b commit 85aec2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/providers/realtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 85aec2e

Please sign in to comment.