稳定性升级
This commit is contained in:
@@ -56,8 +56,10 @@ public class SendTask {
|
||||
|
||||
|
||||
|
||||
|
||||
public void check(int number) throws IOException {
|
||||
long limit= (1<<Math.min(4,count.get()-1))*(number<2?100:1000*number)*1000000L;
|
||||
long limit= (1<<(2*Math.min(4,count.get()-1)))*(number<3?200:1000*number)*1000000L;
|
||||
//long limit=(1<<Math.min(4,count.get()-1)*1000L*number+1000L)*1000000L;
|
||||
if(checkTime(limit))
|
||||
run();
|
||||
}
|
||||
@@ -70,13 +72,12 @@ public class SendTask {
|
||||
try {
|
||||
if(count.get()==0) {
|
||||
controllker.sendPacketToAddress((Inet6Address) address,
|
||||
packet, priority+count.get(),1);
|
||||
packet, priority+count.get(),2);
|
||||
}else {
|
||||
controllker.sendPacketToAddress((Inet6Address) address,
|
||||
packet, priority+count.get(),2);
|
||||
}
|
||||
} catch (NoRouteToHostException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
resetTime();
|
||||
count.incrementAndGet();
|
||||
|
||||
Reference in New Issue
Block a user