lib/zold/node/farm.rb in zold-0.11.14 vs lib/zold/node/farm.rb in zold-0.11.15
- old
+ new
@@ -75,10 +75,10 @@
strength: strength
)
end
s = @scores.pop
next unless s.valid?
- next if s.expired?
+ next if s.expired?(20)
next if s.strength < strength
@semaphore.synchronize do
save(s)
before = @best.map(&:value).max
@best << s