X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c7c23fb4aeaa6cb21200d46b936ddbdc3adc292e..6773932f4d6cd52be9159ff52d4acdc4513eba5d:/utils/cron_banip.py?ds=sidebyside 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("""