Proposal for fix related to 1rst issue of #345
=> (getTimeToWait /10)*10 (see http://www.javamex.com/tutorials/threads/sleep_issues.shtml)
This commit is contained in:
parent
e54662f7d0
commit
2320a5919f
@ -360,7 +360,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…
Reference in New Issue
Block a user