Commit 653733a8 authored by Steven Wittens's avatar Steven Wittens
Browse files

- Throttle: fixed incorrect watchdog message (seems a leftover from before).

parent abf27dde
......@@ -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));
}
}
......
......@@ -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));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment