summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/throttle.module4
-rw-r--r--modules/throttle/throttle.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/throttle.module b/modules/throttle.module
index c92cddfee..88fdae8ee 100644
--- a/modules/throttle.module
+++ b/modules/throttle.module
@@ -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));
}
}
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module
index c92cddfee..88fdae8ee 100644
--- a/modules/throttle/throttle.module
+++ b/modules/throttle/throttle.module
@@ -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));
}
}