lib/steep/drivers/utils/jobs_option.rb in steep-1.4.0 vs lib/steep/drivers/utils/jobs_option.rb in steep-1.5.0.pre.1
- old
+ new
@@ -11,10 +11,15 @@
def default_jobs_count
Concurrent.physical_processor_count + jobs_count_modifier
end
def jobs_count_value
- jobs_count || default_jobs_count
+ count = jobs_count || default_jobs_count
+ if count >= 1
+ count
+ else
+ 1
+ end
end
end
end
end
end