Littel optimisation for LimitChecher...
This commit is contained in:
parent
0ed95121d2
commit
e92ce9f11f
@ -2,7 +2,7 @@
|
||||
<Configuration status="error">
|
||||
<Appenders>
|
||||
<Console name="Console" target="SYSTEM_OUT">
|
||||
<PatternLayout pattern="%highlight{[%d{HH:mm:ss.SSS}][%-5level]%logger{36}: %msg%n}{FATAL=red blink, ERROR=red, WARN=bright yellow , INFO=blue, DEBUG=bright black, TRACE=cyan}" />
|
||||
<PatternLayout pattern="%highlight{[%d{HH:mm:ss.SSS}][%-5level]%logger{2}: %msg%n}{FATAL=red blink, ERROR=red, WARN=bright yellow , INFO=blue, DEBUG=bright black, TRACE=cyan}" />
|
||||
<!--{FATAL=red blink, ERROR=red, WARN=orange, INFO=yellow, DEBUG=green bold, TRACE=blue}-->
|
||||
</Console>
|
||||
<!--
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user