From 3ca877717a436bb55e747f515327a91149db1f6a Mon Sep 17 00:00:00 2001 From: evenly-epic-mule Date: Thu, 8 Jun 2017 14:07:42 +0000 Subject: [PATCH] Fix smart throttle, allow disabling it --- monocle/worker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monocle/worker.py b/monocle/worker.py index 971e6696..2b214bc9 100644 --- a/monocle/worker.py +++ b/monocle/worker.py @@ -889,6 +889,8 @@ async def visit_point(self, point, spawn_id, bootstrap, return pokemon_seen + forts_seen + points_seen def smart_throttle(self, requests=1): + if not conf.SMART_THROTTLE: + return True try: # https://en.wikipedia.org/wiki/Linear_equation#Two_variables # e.g. hashes_left > 2.25*seconds_left+7.5, spare = 0.05, max = 150