diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-08 17:17:52 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-08 17:17:52 +0100 |
commit | cb7611385c5ec7bc951d9be24a0ccbe8d89d2e4f (patch) | |
tree | 531fea360ada337a4f52ff9d2ec28edc420387f1 | |
parent | 96f92a1afac1599cc5f6128e7e9a43bdab220bc8 (diff) | |
download | busybox-w32-cb7611385c5ec7bc951d9be24a0ccbe8d89d2e4f.tar.gz busybox-w32-cb7611385c5ec7bc951d9be24a0ccbe8d89d2e4f.tar.bz2 busybox-w32-cb7611385c5ec7bc951d9be24a0ccbe8d89d2e4f.zip |
ntpd: adjust last packet's recv time after a step
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ntpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index ed83415b4..c4b018778 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1445,6 +1445,8 @@ update_local_clock(peer_t *p) | |||
1445 | 1445 | ||
1446 | run_script("step", offset); | 1446 | run_script("step", offset); |
1447 | 1447 | ||
1448 | recv_time += offset; | ||
1449 | |||
1448 | #if USING_INITIAL_FREQ_ESTIMATION | 1450 | #if USING_INITIAL_FREQ_ESTIMATION |
1449 | if (G.discipline_state == STATE_NSET) { | 1451 | if (G.discipline_state == STATE_NSET) { |
1450 | set_new_values(STATE_FREQ, /*offset:*/ 0, recv_time); | 1452 | set_new_values(STATE_FREQ, /*offset:*/ 0, recv_time); |