summaryrefslogtreecommitdiff
path: root/modules/throttle
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-07 19:03:35 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-07 19:03:35 +0000
commitef0fa006ed83a10326ff0affc5f83a55fe591836 (patch)
tree0c31cb244e9614e020af99482e2bc14e1d99ac50 /modules/throttle
parent7b915b3c713d238cfda49900bcbfec231bdbb315 (diff)
downloadbrdo-ef0fa006ed83a10326ff0affc5f83a55fe591836.tar.gz
brdo-ef0fa006ed83a10326ff0affc5f83a55fe591836.tar.bz2
- Usability improvement: replaced many selection boxes by radio buttons.
Patch by Stefan.
Diffstat (limited to 'modules/throttle')
-rw-r--r--modules/throttle/throttle.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module
index e2469b755..d6b3b7df5 100644
--- a/modules/throttle/throttle.module
+++ b/modules/throttle/throttle.module
@@ -59,7 +59,7 @@ function throttle_help($section = "admin/help#throttle") {
/* Adds configure option to the main configure site admin page */
function throttle_settings() {
/* access log options */
- $output .= form_select(t("Enable auto-throttle"), "statistics_enable_auto_throttle", variable_get("statistics_enable_auto_throttle", 0), array("1" => t("enabled"), "0" => t("disabled")), "Enable auto-throttling congestion control mechanism. Allows your site to adapt under extreme user loads. Requires that 'access log' be enabled.");
+ $output .= form_radios(t("Enable auto-throttle"), "statistics_enable_auto_throttle", variable_get("statistics_enable_auto_throttle", 0), array("1" => t("enabled"), "0" => t("disabled")), "Enable auto-throttling congestion control mechanism. Allows your site to adapt under extreme user loads. Requires that 'access log' be enabled.");
$throttles = array(1 => "1 (0,1,2,3,4,5)", 5 => "5 (0,5,10,15,20,25)", 10 => "10 (0,10,20,30,40,50)", 12 => "12 (0,12,24,36,48,60)", 15 => "15 (0,15,30,45,60,75)", 20 => "20 (0,20,40,60,80,100)", 30 => "30 (0,30,60,90,120,150)", 50 => "50 (0,50,100,150,200,250)", 60 => "60 (0,60,120,180,240,300)", 100 => "100 (0,100,200,300,400,500", 500 => "500 (0,500,1000,1500,2000,2500", 1000 => "1000 (0,1000,2000,3000,4000,5000)");
$output .= form_select(t("Auto-throttle multiplier"), "statistics_throttle_multiplier", variable_get("statistics_throttle_multiplier", 60), $throttles, "Throttle tuning. Specify how many hits in the past 60 seconds triggers higher throttle level. Example: multiplier of 5 takes 5 hits for level 1, 25 hits for level 5.");
$probabilities = array(0 => "100%", 1 => "50%", 2 => "33.3%", 3 => "25%", 4 => "20%", 5 => "16.6%", 7 => "12.5%", 9 => "10%", 19 => "5%", 99 => "1%", 199 => ".5%", 399 => ".25%", 989 => ".1%");