From e92ce9f11f8ec3f582dc2e5892a8881b464dfc16 Mon Sep 17 00:00:00 2001 From: BrokenFire Date: Mon, 20 Mar 2017 18:47:32 +0100 Subject: [PATCH] Littel optimisation for LimitChecher... --- log4j2.xml | 4 ++-- src/net/Broken/Outils/LimitChecker.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/log4j2.xml b/log4j2.xml index efdbd28..aeda5b9 100644 --- a/log4j2.xml +++ b/log4j2.xml @@ -2,7 +2,7 @@ - + + diff --git a/src/net/Broken/Outils/LimitChecker.java b/src/net/Broken/Outils/LimitChecker.java index 95a770b..89e17ef 100644 --- a/src/net/Broken/Outils/LimitChecker.java +++ b/src/net/Broken/Outils/LimitChecker.java @@ -31,7 +31,7 @@ public class LimitChecker { if(result!=404) number += 500; } - number-=500; + number-=400; result = -1; logger.debug("First pass: "+number); while(result != 404 ) @@ -45,7 +45,7 @@ public class LimitChecker { if(result!=404) number += 100; } - number-=100; + number-=90; result = -1; logger.debug("Second pass: "+number); while(result != 404 ) @@ -59,7 +59,7 @@ public class LimitChecker { if(result!=404) number += 10; } - number-=10; + number-=9; result = -1; logger.debug("Third pass: "+number); while(result != 404 )