Commit Graph

5 Commits

Author SHA1 Message Date
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
4393bdeb77 Ref T275, CTokenBucket further improvements
* allow to use extrenal timestamp for replenishment
* only replenish if there are not enough tokens "in stock"
2018-06-13 14:00:10 +02:00
Klaus Basan
0849359722 Ref T275, adjusted token bucket to work (better) with ms (milli seconds) intervals 2018-06-13 14:00:02 +02:00
Mathew Sutcliffe
2f54e00d65 Ref T184 Minor optimization in CTokenBucket: avoid converting interval to seconds
every time a token is consumed, by doing the conversion once in the constructor.
2017-11-12 13:48:05 +00:00
Mathew Sutcliffe
dbb67b385b Ref T184 Moved CTokenBucket from BlackCore to BlackMisc. 2017-11-12 13:48:02 +00:00