Nils O. Selåsdal
|
262958b8a0
|
Rework rate limit to only refill when needed
|
2013-10-16 19:22:53 +02:00 |
|
Nils O. Selåsdal
|
934088ca4a
|
Remove ticket_cost member as it is no longer needed
|
2013-10-15 22:31:57 +02:00 |
|
Nils O. Selåsdal
|
0a36c669c6
|
More ratelimit optimizations
|
2013-10-15 21:35:10 +02:00 |
|
Nils O. Selåsdal
|
9c15b73774
|
Small optimization change when tickets < period
|
2013-10-15 20:14:15 +02:00 |
|
Nils O. Selåsdal
|
c84d903b4f
|
Assert that rate limit values are ok
|
2013-10-15 15:27:25 +02:00 |
|
Nils O. Selåsdal
|
763032fb04
|
Greatly improve the rate limit algorithm, so it is correct for a low
ticket to period ratio.
|
2013-10-15 15:03:27 +02:00 |
|
Nils O. Selåsdal
|
3d93ec6091
|
Bump scaling to 1000.
Note the error in integer arithmetic
|
2013-10-12 01:28:20 +02:00 |
|
Nils O. Selåsdal
|
9ca4a354ee
|
Fix calculating available tickets.
Help prevent overflow when there's long periods between calls
|
2013-10-10 01:06:49 +02:00 |
|
Nils O. Selåsdal
|
212fecae08
|
Move rate limit example to test/
|
2013-10-09 22:59:47 +02:00 |
|
Nils O. Selåsdal
|
06083a054e
|
Add rate limit API
|
2013-10-09 22:55:29 +02:00 |
|