|author||Eric Lagergren <firstname.lastname@example.org>||Sat Oct 12 23:13:57 2019 -0700|
|committer||Emmanuel Odeke <email@example.com>||Wed Oct 23 06:52:45 2019 +0000|
rate: fix rounding error in tokensFromDuration tokensFromDuration performs a unit conversion by multiplying the limit by the duration in seconds. Make tokensFromDuration perform conversion by unit-wise multiplication of limit by seconds and nanoseconds, instead of the conversion to time.(Duration).Seconds that truncated the nanoseconds. Fixes golang/go#34861 Change-Id: I94d290d3e32a87541d1702f2b58180270e1a9e96 Reviewed-on: https://go-review.googlesource.com/c/time/+/200900 Run-TryBot: Emmanuel Odeke <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> Reviewed-by: Emmanuel Odeke <firstname.lastname@example.org>
This repository provides supplementary Go time packages.
The easiest way to install is to run
go get -u golang.org/x/time. You can also manually git clone the repository to
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/time:” in the subject line, so it is easy to find.