diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-04-19 11:08:42 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-04-19 11:08:42 +0000 |
commit | 87bef9127e3484f423f339a5d29ea569ee911112 (patch) | |
tree | 8f644223fc5eca85c72ea380fd33e50f83743dcc /usr.sbin | |
parent | 628c1023dc577020a22cbe5ff60296bea4dad8cd (diff) |
move the "reply from ... " log msg in -d mdoe uop a bit so it actually
comes before the "adjusting local clock by..." one, joerg
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ntpd/client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index 660cd11beee..e03d5a3670a 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.59 2005/04/18 11:06:35 henning Exp $ */ +/* $OpenBSD: client.c,v 1.60 2005/04/19 11:08:41 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -268,14 +268,14 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) p->trustlevel++; } - client_update(p); - if (settime) - priv_settime(p->reply[p->shift].offset); - log_debug("reply from %s: offset %f delay %f, " "next query %ds", log_sockaddr((struct sockaddr *)&p->addr->ss), p->reply[p->shift].offset, p->reply[p->shift].delay, interval); + client_update(p); + if (settime) + priv_settime(p->reply[p->shift].offset); + if (++p->shift >= OFFSET_ARRAY_SIZE) p->shift = 0; |