Proposal for fix related to 1rst issue of #345
Thread.sleep(wait) => Thread.sleep((wait/10)*10) (see http://www.javamex.com/tutorials/threads/sleep_issues.shtml)
This commit is contained in:
parent
2a05afd418
commit
d2cf217378
@ -358,7 +358,7 @@ public abstract class AbstractTrafficShapingHandler extends
|
||||
// Time is too short, so just lets continue
|
||||
return 0;
|
||||
}
|
||||
return bytes * 1000 / limit - interval;
|
||||
return ((bytes * 1000 / limit - interval)/10)*10;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user