mirror of
https://github.com/sheumann/hush.git
synced 2025-01-11 08:29:54 +00:00
ntpd: adjust last packet's recv time after a step
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
96f92a1afa
commit
cb7611385c
@ -1445,6 +1445,8 @@ update_local_clock(peer_t *p)
|
|||||||
|
|
||||||
run_script("step", offset);
|
run_script("step", offset);
|
||||||
|
|
||||||
|
recv_time += offset;
|
||||||
|
|
||||||
#if USING_INITIAL_FREQ_ESTIMATION
|
#if USING_INITIAL_FREQ_ESTIMATION
|
||||||
if (G.discipline_state == STATE_NSET) {
|
if (G.discipline_state == STATE_NSET) {
|
||||||
set_new_values(STATE_FREQ, /*offset:*/ 0, recv_time);
|
set_new_values(STATE_FREQ, /*offset:*/ 0, recv_time);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user