From c264f6da18c535b94560554657b44c9e5b206c4f Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 12 Apr 2013 23:30:09 +0200 Subject: [PATCH] tweak block limits --- utils/cron_banip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/cron_banip.py b/utils/cron_banip.py index 4fe30640..b5944a21 100755 --- a/utils/cron_banip.py +++ b/utils/cron_banip.py @@ -109,7 +109,7 @@ dbload = int(cur.fetchone()[0]) BLOCK_LIMIT = max(BLOCK_LOWER, BLOCK_UPPER - BLOCK_LOADFAC * (dbload - 75)) BULKLONG_LIMIT = max(BULK_LOWER, BULKLONG_LIMIT - BULK_LOADFAC * (avgload - 14)) if len(prevbulks) > 85: - BLOCK_LIMIT = BLOCK_LOWER + BLOCK_LIMIT = max(3600, BLOCK_LOWER - (len(prevbulks) - 85)*10) # get the new block candidates cur.execute(""" -- 2.45.2