Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
653733a8
Commit
653733a8
authored
Feb 05, 2004
by
Steven Wittens
Browse files
- Throttle: fixed incorrect watchdog message (seems a leftover from before).
parent
abf27dde
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/throttle.module
View file @
653733a8
...
...
@@ -169,11 +169,11 @@ function _throttle_update($hits) {
// log the change
if
(
$throttle_new
<
$throttle
)
{
variable_set
(
'throttle_level'
,
$throttle
-
1
);
watchdog
(
'regular'
,
"message: '
$hits
' hits in past minute; throttle decreased to level "
.
$throttle
_new
);
watchdog
(
'regular'
,
"message: '
$hits
' hits in past minute; throttle decreased to level "
.
(
$throttle
-
1
)
);
}
if
(
$throttle_new
>
$throttle
)
{
variable_set
(
'throttle_level'
,
$throttle
+
1
);
watchdog
(
'warning'
,
"warning: '
$hits
' hits in past minute; throttle increased to level "
.
$throttle
_new
);
watchdog
(
'warning'
,
"warning: '
$hits
' hits in past minute; throttle increased to level "
.
(
$throttle
+
1
)
);
}
}
...
...
modules/throttle/throttle.module
View file @
653733a8
...
...
@@ -169,11 +169,11 @@ function _throttle_update($hits) {
// log the change
if
(
$throttle_new
<
$throttle
)
{
variable_set
(
'throttle_level'
,
$throttle
-
1
);
watchdog
(
'regular'
,
"message: '
$hits
' hits in past minute; throttle decreased to level "
.
$throttle
_new
);
watchdog
(
'regular'
,
"message: '
$hits
' hits in past minute; throttle decreased to level "
.
(
$throttle
-
1
)
);
}
if
(
$throttle_new
>
$throttle
)
{
variable_set
(
'throttle_level'
,
$throttle
+
1
);
watchdog
(
'warning'
,
"warning: '
$hits
' hits in past minute; throttle increased to level "
.
$throttle
_new
);
watchdog
(
'warning'
,
"warning: '
$hits
' hits in past minute; throttle increased to level "
.
(
$throttle
+
1
)
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment