summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@cvs.openbsd.org>2006-05-29 20:51:55 +0000
committerChris Kuethe <ckuethe@cvs.openbsd.org>2006-05-29 20:51:55 +0000
commit690fd1f2665fce462450340c042ccfd29d270e54 (patch)
treefd49c0ba081d39450dcade8344179b70a6a6722b /usr.sbin/ntpd
parent9f6721495fde3b6d8da1d395befd8d55482e4413 (diff)
When ntpd backs off polling due to a negative delay, tell the user how long
it will wait until the next poll. ok henning@
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r--usr.sbin/ntpd/client.c7
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);