From c2db08cdbe52484bfe197c04975eb8125d857406 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 19 May 2021 20:03:57 +0100 Subject: [PATCH] Remove load checker (#404) 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 6e89e31d0..c5121e86c 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 85d63a530..000000000 --- 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 b515926ef..f20d4a44e 100644 --- a/manual-lookup.php +++ b/manual-lookup.php @@ -1,7 +1,6 @@