|
|
@ -1,4 +1,4 @@ |
|
|
|
/* $OpenBSD: client.c,v 1.4 2004/07/04 19:52:24 henning Exp $ */ |
|
|
|
/* $OpenBSD: client.c,v 1.5 2004/07/04 22:24:20 henning Exp $ */ |
|
|
|
|
|
|
|
/* |
|
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
@ -86,7 +86,7 @@ client_query(struct ntp_peer *p) |
|
|
|
NTP_MSGSIZE_NOAUTH, 0); |
|
|
|
p->state = STATE_QUERY_SENT; |
|
|
|
p->next = 0; |
|
|
|
p->deadline = time(NULL) + MAX_QUERYTIME; |
|
|
|
p->deadline = time(NULL) + QUERYTIME_MAX; |
|
|
|
|
|
|
|
return (0); |
|
|
|
} |
|
|
@ -139,7 +139,7 @@ client_dispatch(struct ntp_peer *p) |
|
|
|
p->error = (T2 - T1) - (T3 - T4); |
|
|
|
|
|
|
|
p->state = STATE_REPLY_RECEIVED; |
|
|
|
p->next = time(NULL) + QUERY_INTERVAL; |
|
|
|
p->next = time(NULL) + INTERVAL_QUERY; |
|
|
|
p->deadline = 0; |
|
|
|
|
|
|
|
log_debug("reply received: offset %f error %f", p->offset, p->error); |
|
|
|