diff options
author | 2006-05-29 20:51:54 +0000 | |
---|---|---|
committer | 2006-05-29 20:51:54 +0000 | |
commit | ec29bbbafbac564315515c4f40fc65e2e25cc8f0 (patch) | |
tree | 09c8cc862653ffad1d1e37936e8a2042194a681d | |
parent | Get rid of -t (traditional C) option. Some corrections by moritz. (diff) | |
download | wireguard-openbsd-ec29bbbafbac564315515c4f40fc65e2e25cc8f0.tar.xz wireguard-openbsd-ec29bbbafbac564315515c4f40fc65e2e25cc8f0.zip |
When ntpd backs off polling due to a negative delay, tell the user how long
it will wait until the next poll.
ok henning@
-rw-r--r-- | usr.sbin/ntpd/client.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index 4e30f465bb7..e4b2ea14192 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.67 2006/05/25 19:25:46 henning Exp $ */ +/* $OpenBSD: client.c,v 1.68 2006/05/29 20:51:54 ckuethe Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -237,9 +237,10 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) if (p->reply[p->shift].delay < 0) { interval = error_interval(); set_next(p, interval); - log_info("reply from %s: negative delay %f", + log_info("reply from %s: negative delay %fs, " + "next query %ds", log_sockaddr((struct sockaddr *)&p->addr->ss), - p->reply[p->shift].delay); + p->reply[p->shift].delay, interval); return (0); } p->reply[p->shift].error = (T2 - T1) - (T3 - T4); |