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:
Frédéric Brégier 2012-05-19 14:54:59 +03:00
parent e54662f7d0
commit 2320a5919f

View File

@ -360,7 +360,7 @@ public abstract class AbstractTrafficShapingHandler extends
// Time is too short, so just lets continue // Time is too short, so just lets continue
return 0; return 0;
} }
return bytes * 1000 / limit - interval; return ((bytes * 1000 / limit - interval)/10)*10;
} }
@Override @Override