Commit eab742ef authored by nazarf's avatar nazarf

add condition hasrate more 0

parent 54f05aa2
......@@ -61,7 +61,7 @@ namespace :miners do
last_activity_time = miner.last_activity || check_activity_time
response_json['workers'].each do |item|
if item['name'] == miner.name
if item['name'] == miner.name && item['hashrate'] > 0
is_work = true
hr_stats = item["hashrate"]
puts item["hashrate"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment