From: Sarah Hoffmann Date: Fri, 12 Apr 2013 21:30:09 +0000 (+0200) Subject: tweak block limits X-Git-Tag: deploy~621 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/c264f6da18c535b94560554657b44c9e5b206c4f tweak block limits --- 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("""