mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Changed formula for calculating time between requests
This commit is contained in:
parent
a46ae8f13e
commit
935e17a8e9
|
@ -215,7 +215,7 @@ class Domain:
|
||||||
|
|
||||||
@cache
|
@cache
|
||||||
def calculate_sleep_time(self, queue_length: int):
|
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):
|
async def run_wiki_check(self):
|
||||||
"""Runs appropriate scheduler depending on existence of IRC"""
|
"""Runs appropriate scheduler depending on existence of IRC"""
|
||||||
|
|
Loading…
Reference in a new issue