Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
What version of Go are you using (
I'm not too familiar with the rate limiting algorithm, but the bug seems to come from a floating-point imprecision.
That result (after subtracting
Since that result is truncated (converted to an
Manually fixing the inaccuracy inside