lib/steep/drivers/utils/jobs_option.rb in steep-1.4.0.dev.4 vs lib/steep/drivers/utils/jobs_option.rb in steep-1.4.0.dev.5
- old
+ new
@@ -2,17 +2,15 @@
module Drivers
module Utils
class JobsOption
attr_accessor :jobs_count, :steep_command, :jobs_count_modifier
- include Parallel::ProcessorCount
-
def initialize(jobs_count_modifier: 0)
@jobs_count_modifier = jobs_count_modifier
end
def default_jobs_count
- physical_processor_count + jobs_count_modifier
+ Concurrent.physical_processor_count + jobs_count_modifier
end
def jobs_count_value
jobs_count || default_jobs_count
end