ntpd: calculate offset to jitter ratio before updating jitter
authorMiroslav Lichvar <mlichvar@redhat.com>
Sun, 5 Oct 2014 01:10:15 +0000 (03:10 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 5 Oct 2014 01:11:53 +0000 (03:11 +0200)
commit760d035699c4a878f9109544c1d35ea0d5f6b76c
treee36b94993b03ea937b625e46047b871f62defd93
parentcd738711782d5860eeab4e7cefdd1f72dfb83810
ntpd: calculate offset to jitter ratio before updating jitter

The offset to jitter ratio is now calculated before updating
jitter to make the test more sensitive.

function                                             old     new   delta
ntp_init                                             460     474     +14
update_local_clock                                   752     764     +12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 26/0)               Total: 26 bytes

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c