From 76ae18604c8ce614e55c28b77ea01020bf5bc021 Mon Sep 17 00:00:00 2001 From: Phillip Jensen Date: Thu, 19 Oct 2023 10:37:46 +0200 Subject: [PATCH] Revert "Decrease % before update due to relay crash" This reverts commit 54435d87b0b8cd09e427e5ec1f5866ad57eee14e. --- stats-backend/collector/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats-backend/collector/tasks.py b/stats-backend/collector/tasks.py index 241c9b2..8093bc9 100644 --- a/stats-backend/collector/tasks.py +++ b/stats-backend/collector/tasks.py @@ -1095,7 +1095,7 @@ def v1_offer_scraper_hybrid(): serialized = json.loads(content) online_node_count = Node.objects.filter(online=True, hybrid=True).count() # Stabilize the chart when running multiple scanners by checking if its atleast 90% of the nodes online before updating. There's a risk that it won't update if more than 10% of the network drops within a single minute. - if len(serialized) >= online_node_count * 0.60: + if len(serialized) >= online_node_count * 0.90: print(f"Updating database with {len(serialized)} nodes.") nodes_to_update = [] offline_nodes = set(