summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-07-06 05:40:11 +0200
committerGitHub <noreply@github.com>2018-07-06 05:40:11 +0200
commit57e53a03137969a22cb168bbf02b55c7cedf2f3a (patch)
treefcafb934deec69d917e531b39f3c2a38712a4e9c /Bugzilla
parent41cee480efeee366445ca3666423d35ecc521f13 (diff)
downloadbugzilla-57e53a03137969a22cb168bbf02b55c7cedf2f3a.tar.gz
bugzilla-57e53a03137969a22cb168bbf02b55c7cedf2f3a.tar.xz
no bug - use more obvious looping construct
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Memcached.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Memcached.pm b/Bugzilla/Memcached.pm
index f3272c194..40755aa29 100644
--- a/Bugzilla/Memcached.pm
+++ b/Bugzilla/Memcached.pm
@@ -230,9 +230,9 @@ sub should_rate_limit {
return 0 unless $name;
return 0 unless $memcached;
- $tries //= 3;
+ $tries //= 4;
- for my $try (0 .. $tries) {
+ for my $try (1 .. $tries) {
my $now = time;
my ($key, @keys) = map { $prefix . ( $now - $_ ) } 0 .. $rate_seconds;
$memcached->add($key, 0, $rate_seconds+1);