Browse Source

need to call adjtime once in a while here too, otherwise sensor-only

servers never update the system clock
OPENBSD_4_1
henning 18 years ago
parent
commit
153642fa72
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/usr.sbin/ntpd/sensors.c

+ 3
- 1
src/usr.sbin/ntpd/sensors.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: sensors.c,v 1.22 2006/10/12 10:40:45 henning Exp $ */
/* $OpenBSD: sensors.c,v 1.23 2006/10/12 10:41:51 henning Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@ -169,6 +169,8 @@ sensor_query(struct ntp_sensor *s)
s->update.status.reftime = sensor.tv.tv_sec;
s->update.status.synced = 1;
priv_adjtime();
log_debug("sensor %s: offset %f", s->device, s->update.offset);
}


Loading…
Cancel
Save