Skip to content
Snippets Groups Projects
Commit e58a4fc6 authored by David Goulet's avatar David Goulet :panda_face:
Browse files

dos: Make circuit rate limit per second, not tenths anymore


Because this touches too many commits at once, it is made into one single
commit.

Remove the use of "tenths" for the circuit rate to simplify things. We can
only refill the buckets at best once every second because of the use of
approx_time() and our token system is set to be 1 token = 1 circuit so make
the rate a flat integer of circuit per second.

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent a3714268
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment