Method: Zold::Hands.threshold

Defined in:
lib/zold/hands.rb

.thresholdObject



44
45
46
47
48
49
# File 'lib/zold/hands.rb', line 44

def self.threshold
  advised = Total::Mem.new.bytes / (128 * 1024 * 1024)
  [Concurrent.processor_count * 4, [advised, 4].max].min
rescue Total::CantDetect
  4
end