From 9325c20f998cc9dce779a60d9307279b3f4ce9bf Mon Sep 17 00:00:00 2001 From: ckuethe <> Date: Mon, 29 May 2006 20:51:54 +0000 Subject: [PATCH] When ntpd backs off polling due to a negative delay, tell the user how long it will wait until the next poll. ok henning@ --- src/usr.sbin/ntpd/client.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/usr.sbin/ntpd/client.c b/src/usr.sbin/ntpd/client.c index 4e30f465..e4b2ea14 100644 --- a/src/usr.sbin/ntpd/client.c +++ b/src/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 @@ -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);