fix submit pow info timings
This commit is contained in:
parent
2d1c15c7bf
commit
c3e1b684fe
|
@ -534,7 +534,7 @@ class CloreClient:
|
|||
await monitoring.put("background_pow_data_collection")
|
||||
if not self.dont_use_hive_binaries and self.is_hive:
|
||||
miner_config = await self.hive_miner_interface.export_miner_stats(get_hashrates=False)
|
||||
if (miner_config["miner_uptime"]>0 and miner_config["miner_uptime"]<60) or self.next_pow_background_job_send_update > time.time():
|
||||
if (miner_config["miner_uptime"]>0 and miner_config["miner_uptime"]<60) or self.next_pow_background_job_send_update < time.time():
|
||||
self.next_pow_background_job_send_update = time.time()+(5*60)
|
||||
current_statistics = await self.hive_miner_interface.export_miner_stats(get_hashrates=True)
|
||||
submit_result = await WebSocketClient.send({"submit_hashrates": current_statistics})
|
||||
|
|
Loading…
Reference in New Issue