]> git.ipfire.org Git - thirdparty/chrony.git/commit
sched: improve time jump detection
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 20 Aug 2014 09:34:16 +0000 (11:34 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 20 Aug 2014 14:54:26 +0000 (16:54 +0200)
commite63bd490b0f3375ff4cfbd95680869c85f4e71f9
treecf4aa62d8dc191f7f8b9730139f8b0d33b09029c
parentbadf97d4baba8f856dca7ac156c11faaac122a4d
sched: improve time jump detection

To detect forward time jumps, use a timestamp made before calling
select() instead of the first timeout in the queue. Also, if the timeout
value is modified by select() (e.g. on Linux) use it to get a more
accurate estimate of the elapsed time.
sched.c