fix submit pow info timings

This commit is contained in:
clore 2024-09-08 23:33:06 +00:00
parent 2d1c15c7bf
commit c3e1b684fe
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ class CloreClient:
await monitoring.put("background_pow_data_collection") await monitoring.put("background_pow_data_collection")
if not self.dont_use_hive_binaries and self.is_hive: if not self.dont_use_hive_binaries and self.is_hive:
miner_config = await self.hive_miner_interface.export_miner_stats(get_hashrates=False) 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) self.next_pow_background_job_send_update = time.time()+(5*60)
current_statistics = await self.hive_miner_interface.export_miner_stats(get_hashrates=True) current_statistics = await self.hive_miner_interface.export_miner_stats(get_hashrates=True)
submit_result = await WebSocketClient.send({"submit_hashrates": current_statistics}) submit_result = await WebSocketClient.send({"submit_hashrates": current_statistics})