ntpd: adjust last packet's recv time after a step
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 8 Jan 2014 16:17:52 +0000 (17:17 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 8 Jan 2014 16:17:52 +0000 (17:17 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c

index ed83415b4784fafa23859dad16ee4eae0869aec0..c4b018778bede083be3244eba4386605653abba1 100644 (file)
@@ -1445,6 +1445,8 @@ update_local_clock(peer_t *p)
 
                run_script("step", offset);
 
+               recv_time += offset;
+
 #if USING_INITIAL_FREQ_ESTIMATION
                if (G.discipline_state == STATE_NSET) {
                        set_new_values(STATE_FREQ, /*offset:*/ 0, recv_time);