From 8b8ee007253daf653aefa49bcad5505f7e4324ad Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 2 Dec 2018 10:14:11 +0100 Subject: [PATCH] remove blocks script Belongs to the rate-limiting code that has been removed a long time ago. --- CMakeLists.txt | 1 - utils/blocks.php | 55 ------------------------------------------------ 2 files changed, 56 deletions(-) delete mode 100755 utils/blocks.php 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(); -} -- 2.45.1