diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java index e076c60a44f..8277843af5a 100644 --- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java +++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java @@ -316,10 +316,10 @@ public class DoSFilter implements Filter // Get a rate tracker associated with this request, and record one hit. tracker = getRateTracker(request); - // Calculate the rate and check it is over the allowed limit + // Calculate the rate and check if it is over the allowed limit final boolean overRateLimit = tracker.isRateExceeded(System.currentTimeMillis()); - // Pass it through if we are not currently over the rate limit. + // Pass it through if we are not currently over the rate limit. if (!overRateLimit) { if (LOG.isDebugEnabled())