forked from KNEMC/KLALB
KLALB3.2
This commit is contained in:
@@ -63,6 +63,7 @@ public class SpeedLimiter {
|
||||
waitingtime.addAndGet(datasize*1000000000L/limitspeedx);
|
||||
}
|
||||
}
|
||||
//用系统计时器的时刻相减得到经过的时间,与数据包除以限速值得到的应消耗的时间做对比,若时间还未到达发送下一个数据包的时机,则返回false
|
||||
public boolean checkTransmit(long datasize) {
|
||||
long limitspeedx=limitspeed;
|
||||
if(limitspeedx<=0) {
|
||||
|
||||
Reference in New Issue
Block a user