diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index 62baf61b..316f35af 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.96 2006/12/20 16:50:13 henning Exp $ */ +/* $OpenBSD: ntp.c,v 1.97 2007/01/14 19:20:09 otto Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -564,6 +564,11 @@ priv_adjtime(void) p->reply[i].offset -= offset_median; p->update.good = 0; } + TAILQ_FOREACH(s, &conf->ntp_sensors, entry) { + for (i = 0; i < SENSOR_OFFSETS; i++) + s->offsets[i].offset -= offset_median; + s->update.offset -= offset_median; + } return (0); }