From: Sarah Hoffmann Date: Sun, 2 Dec 2018 09:14:11 +0000 (+0100) Subject: remove blocks script X-Git-Tag: v3.3.0~51^2~4 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/8b8ee007253daf653aefa49bcad5505f7e4324ad remove blocks script Belongs to the rate-limiting code that has been removed a long time ago. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d6f7d2cb..898ab229 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,7 +103,6 @@ set(CUSTOMFILES website/reverse.php website/search.php website/status.php - utils/blocks.php utils/country_languages.php utils/importWikipedia.php utils/export.php diff --git a/utils/blocks.php b/utils/blocks.php deleted file mode 100755 index 761ab9e4..00000000 --- a/utils/blocks.php +++ /dev/null @@ -1,55 +0,0 @@ -#!@PHP_BIN@ -Cq -get('sleepCounter'); - echo "\n Sleeping blocks count: $iCurrentSleeping\n"; - - $aBlocks = getBucketBlocks(); - echo "\n"; - printf(" %-40s | %12s | %7s | %13s | %31s | %8s\n", 'Key', 'Total Blocks', 'Current', 'Still Blocked', 'Last Block Time', 'Sleeping'); - printf(" %'--40s-|-%'-12s-|-%'-7s-|-%'-13s-|-%'-31s-|-%'-8s\n", '', '', '', '', '', ''); - foreach ($aBlocks as $sKey => $aDetails) { - printf( - " %-40s | %12s | %7s | %13s | %31s | %8s\n", - $sKey, - $aDetails['totalBlocks'], - (int)$aDetails['currentBucketSize'], - $aDetails['currentlyBlocked']?'Y':'N', - date('r', $aDetails['lastBlockTimestamp']), - $aDetails['isSleeping']?'Y':'N' - ); - } - echo "\n"; -} - -if ($aResult['delete']) { - $m->set('sleepCounter', 0); - clearBucketBlocks(); -} - -if ($aResult['flush']) { - $m->flush(); -}