稳定性升级

This commit is contained in:
Administrator
2023-07-26 21:30:00 +08:00
parent 585b7c5fe6
commit 722ab9710f
30 changed files with 720 additions and 158 deletions
@@ -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();