Fix RATE_LIMIT_INITIALIZER

This commit is contained in:
Nils O. Selåsdal
2014-09-08 22:24:08 +02:00
parent d75d0ee48c
commit 267451f37f
+2 -2
View File
@@ -71,8 +71,8 @@ struct RateLimit {
* @param tickets number of tickets (bucket depth) * @param tickets number of tickets (bucket depth)
* @param period per this period * @param period per this period
*/ */
#define UC_RATELIMIT_INITIALIZER(tickets)\ #define UC_RATELIMIT_INITIALIZER(tickets, period)\
{ tickets, period, 0, -period} { (tickets,) (period), 0, -(period)}