From c3e1b684fe712c9d8932963710817c76ce6c49ac Mon Sep 17 00:00:00 2001 From: clore Date: Sun, 8 Sep 2024 23:33:06 +0000 Subject: [PATCH] fix submit pow info timings --- clore_hosting/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clore_hosting/main.py b/clore_hosting/main.py index 671dea5..5ef1d27 100644 --- a/clore_hosting/main.py +++ b/clore_hosting/main.py @@ -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})