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:
Frédéric Brégier 2012-05-19 18:16:59 +03:00
parent 2a05afd418
commit d2cf217378

View File

@ -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