lib/xcflushd/threading.rb in xcflushd-1.0.0 vs lib/xcflushd/threading.rb in xcflushd-1.1.0
- old
+ new
@@ -1,12 +1,10 @@
# Helper for default threading values.
require 'concurrent'
module Xcflushd
module Threading
- def self.default_threads_value
- cpus = Concurrent.processor_count
- # default thread pool minimum is zero
- return 0, cpus * 4
+ def self.default_threads
+ Concurrent.processor_count * 4
end
end
end