From b2e7011201b2a8d9059bea6e123a9b9dddd594cd Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 12 May 2021 02:22:04 +0100 Subject: [PATCH] Remove load checker We do not use mirrors anymore, thus this is irrelevant. --- error.php | 1 - include/loadavg.inc | 35 ----------------------------------- manual-lookup.php | 1 - 3 files changed, 37 deletions(-) delete mode 100644 include/loadavg.inc diff --git a/error.php b/error.php index 6e89e31d0c..c5121e86c5 100644 --- a/error.php +++ b/error.php @@ -12,7 +12,6 @@ // Ensure that our environment is set up include_once __DIR__ . '/include/prepend.inc'; include_once __DIR__ . '/include/languages.inc'; -include_once __DIR__ . '/include/loadavg.inc'; include_once __DIR__ . '/include/errors.inc'; // Get URI for this request, strip leading slash diff --git a/include/loadavg.inc b/include/loadavg.inc deleted file mode 100644 index 85d63a5303..0000000000 --- a/include/loadavg.inc +++ /dev/null @@ -1,35 +0,0 @@ - 80) { load_toobusy(); } -} - -// Send reply to the client that we are too busy now -function load_toobusy() -{ - header("HTTP/1.1 503 Too busy, try again later"); - echo "Server too busy, please try again later, or use a mirror"; - exit; -} - -load_check(); diff --git a/manual-lookup.php b/manual-lookup.php index b515926efc..f20d4a44e2 100644 --- a/manual-lookup.php +++ b/manual-lookup.php @@ -1,7 +1,6 @@