lib/zold/node/farm.rb in zold-0.16.14 vs lib/zold/node/farm.rb in zold-0.16.15

- old
+ new

@@ -119,12 +119,12 @@ @log.info("No scores found in the cache at #{@cache}") else @log.info("#{best.size} scores pre-loaded from #{@cache}, the best is: #{best[0]}") end @threads = (1..threads).map do |t| - Thread.current.thread_variable_set(:tid, t.to_s) Thread.new do + Thread.current.thread_variable_set(:tid, t.to_s) Endless.new("f#{t}", log: @log).run do cycle(host, port, strength, threads) end end end @@ -139,10 +139,10 @@ end loop { break if ready } end if @threads.empty? cleanup(host, port, strength, threads) - @log.info('Farm started with no threads (there will be no score)') + @log.info("Farm started with no threads (there will be no score) at #{host}:#{port}") else @log.info("Farm started with #{@threads.count} threads (one for cleanup) \ at #{host}:#{port}, strength is #{strength}") end begin