From 935e17a8e94798573e84b64ec49f89eecf57afe0 Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 25 Jul 2024 12:16:30 +0200 Subject: [PATCH] Changed formula for calculating time between requests --- src/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain.py b/src/domain.py index e024a3c..c885f6b 100644 --- a/src/domain.py +++ b/src/domain.py @@ -215,7 +215,7 @@ class Domain: @cache def calculate_sleep_time(self, queue_length: int): - return max((-25 * queue_length) + 150, 1) + return max(125/queue_length, 1) async def run_wiki_check(self): """Runs appropriate scheduler depending on existence of IRC"""