mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
Previously, we were sleeping until a wall time but then comparing the duration slept using monotonic time. If the wall time happens to jump during the sleep, the monotonic time can legitimately be shorter than the wall time. Fixes golang/go#42513 Change-Id: Iaef8d9ba46082e821f5cb18c96b9869238d7af05 Reviewed-on: https://go-review.googlesource.com/c/sys/+/363456 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
26 KiB
26 KiB