Bump scaling to 1000.
Note the error in integer arithmetic
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include "ucore/rate_limit.h"
|
||||
|
||||
#define SCALE_FACTOR 100
|
||||
#define SCALE_FACTOR 1000
|
||||
|
||||
|
||||
void uc_ratelimit_init(struct RateLimit *r, long tickets, long period, long current_ts)
|
||||
|
||||
Reference in New Issue
Block a user