[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	henning_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2006/10/27 06:22:41

Modified files:
	usr.sbin/ntpd  : client.c ntp.c ntpd.h sensors.c util.c 

Log message:
use clock_gettime(CLOCK_MONOTONIC, ..) to get a monotonically increasing
time, and make ntpd use that to send the next uery to an ntp peer and the
like. this has the advantage that changes to the clock do not interfere
with the intervals. for example, when we start on machines without an
RTC and the initial settime (-s) kicks in, intervals were strange.
idea from amandal_(_at_)_entrisphere_(_dot_)_com, this implementation by me
tested ckuethe, phessler, mbalmer, ok mbalmer



Visit your host, monkey.org