summaryrefslogtreecommitdiff
path: root/modules/throttle
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-10-11 19:44:35 +0000
committerDries Buytaert <dries@buytaert.net>2005-10-11 19:44:35 +0000
commit75fe6b6c0ae85d2b53cb803d5b028b050fd6d454 (patch)
tree70ea02551300ed5a696b4d289cfc4722924d58ca /modules/throttle
parentecf5ed57d66a182ae0e269942169e0a6cf3a3912 (diff)
downloadbrdo-75fe6b6c0ae85d2b53cb803d5b028b050fd6d454.tar.gz
brdo-75fe6b6c0ae85d2b53cb803d5b028b050fd6d454.tar.bz2
- Patch #33752 by chx, adrian, et al: another batch of form API changes/fixes.
Diffstat (limited to 'modules/throttle')
-rw-r--r--modules/throttle/throttle.module34
1 files changed, 17 insertions, 17 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module
index a24441d33..f1d1ce5e8 100644
--- a/modules/throttle/throttle.module
+++ b/modules/throttle/throttle.module
@@ -124,27 +124,27 @@ function throttle_settings() {
$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%');
$form['throttle_anonymous'] = array(
- type => 'textfield',
- title => t('Auto-throttle on anonymous users'),
- default_value => variable_get('throttle_anonymous', 0),
- size => 5,
- maxlength => 6,
- description => t('The congestion control throttle can be automatically enabled when the number of anonymous users currently visiting your site exceeds the specified threshold. For example, to start the throttle when your site has 250 anonymous users online at once, enter \'250\' in this field. Leave this value blank or set to "0" if you do not wish to auto-throttle on anonymous users. You can inspect the current number of anonymous users using the "Who\'s online" block.')
+ '#type' => 'textfield',
+ '#title' => t('Auto-throttle on anonymous users'),
+ '#default_value' => variable_get('throttle_anonymous', 0),
+ '#size' => 5,
+ '#maxlength' => 6,
+ '#description' => t('The congestion control throttle can be automatically enabled when the number of anonymous users currently visiting your site exceeds the specified threshold. For example, to start the throttle when your site has 250 anonymous users online at once, enter \'250\' in this field. Leave this value blank or set to "0" if you do not wish to auto-throttle on anonymous users. You can inspect the current number of anonymous users using the "Who\'s online" block.')
);
$form['throttle_user'] = array(
- type => 'textfield',
- title => t('Auto-throttle on authenticated users'),
- default_value => variable_get('throttle_user', 0),
- size => 5,
- maxlength => 6,
- description => t('The congestion control throttle can be automatically enabled when the number of authenticated users currently visiting your site exceeds the specified threshold. For example, to start the throttle when your site has 50 registered users online at once, enter \'50\' in this field. Leave this value blank or set to "0" if you do not wish to auto-throttle on authenticated users. You can inspect the current number of authenticated users using the "Who\'s online" block.')
+ '#type' => 'textfield',
+ '#title' => t('Auto-throttle on authenticated users'),
+ '#default_value' => variable_get('throttle_user', 0),
+ '#size' => 5,
+ '#maxlength' => 6,
+ '#description' => t('The congestion control throttle can be automatically enabled when the number of authenticated users currently visiting your site exceeds the specified threshold. For example, to start the throttle when your site has 50 registered users online at once, enter \'50\' in this field. Leave this value blank or set to "0" if you do not wish to auto-throttle on authenticated users. You can inspect the current number of authenticated users using the "Who\'s online" block.')
);
$form['throttle_probability_limiter'] = array(
- type => 'select',
- title => t('Auto-throttle probability limiter'),
- default_value => variable_get('throttle_probability_limiter', 9),
- options => $probabilities,
- description => t('The auto-throttle probability limiter is an efficiency mechanism to statistically reduce the overhead of the auto-throttle. The limiter is expressed as a percentage of page views, so for example if set to the default of 10% we only perform the extra database queries to update the throttle status 1 out of every 10 page views. The busier your site, the lower you should set the limiter value.')
+ '#type' => 'select',
+ '#title' => t('Auto-throttle probability limiter'),
+ '#default_value' => variable_get('throttle_probability_limiter', 9),
+ '#options' => $probabilities,
+ '#description' => t('The auto-throttle probability limiter is an efficiency mechanism to statistically reduce the overhead of the auto-throttle. The limiter is expressed as a percentage of page views, so for example if set to the default of 10% we only perform the extra database queries to update the throttle status 1 out of every 10 page views. The busier your site, the lower you should set the limiter value.')
);
return $form;