KLALB UDP TEST
This commit is contained in:
@@ -58,8 +58,7 @@ public class SendTask {
|
||||
|
||||
|
||||
public void check(int number) throws IOException {
|
||||
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;
|
||||
long limit= count.get()*(1000*number+500)*1000000L;
|
||||
if(checkTime(limit))
|
||||
run();
|
||||
}
|
||||
@@ -72,10 +71,10 @@ public class SendTask {
|
||||
try {
|
||||
if(count.get()==0) {
|
||||
controllker.sendPacketToAddress((Inet6Address) address,
|
||||
packet, priority+count.get(),2);
|
||||
packet, priority,1);
|
||||
}else {
|
||||
controllker.sendPacketToAddress((Inet6Address) address,
|
||||
packet, priority+count.get(),2);
|
||||
packet, priority-1,1);
|
||||
}
|
||||
} catch (NoRouteToHostException e) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user