lib/zold/node/farm.rb in zold-0.13.25 vs lib/zold/node/farm.rb in zold-0.13.26
- old
+ new
@@ -61,11 +61,11 @@
{
threads: @threads.map do |t|
"#{t.name}/#{t.status}/#{t.alive? ? 'A' : 'D'}"
end.join(', '),
pipeline: @pipeline.size,
- best: best.map { |s| "#{s.value}/#{(s.age / 60).round}m" }.join(', ')
+ best: best.map(&:to_mnemo).join(', ')
}
end
def start(host, port, strength: 8, threads: 8)
@log.info('Zero-threads farm won\'t score anything!') if threads.zero?
@@ -130,9 +130,10 @@
s = @pipeline.pop
return unless s.valid?
return unless s.host == host
return unless s.port == port
return unless s.strength >= strength
+ Thread.current.name = s.to_mnemo
save([s.next])
cleanup(host, port, strength, threads)
end
def save(list = [])