Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-12-28 | forgot a dereference in the previous conversion; ok deraadt@ | Christian Weisgerber | |
2006-12-23 | adapt to new two-level sensor sysctl framework; by Constantine A. Murenin | Theo de Raadt | |
2006-12-20 | let ntpd use sensors immediately after system boot by special casing | Henning Brauer | |
last_sensor_scan == 0. monotime might be very close to 0 after boot. source unknown, maybe from naddy, rediscovered & ok mblamer | |||
2006-11-30 | Allow sensors in a sensors-only configuration to set the time at startup. | Chris Kuethe | |
2006-11-20 | with usig the meadian offset froma number of measurements the recording | Henning Brauer | |
of the last sensor update time got broken, doesn't show up with gps since it updates often (more often than we read), but naddy ran into it with dcf. record time of last sensor datum seperately. ok naddy balmer | |||
2006-10-27 | use clock_gettime(CLOCK_MONOTONIC, ..) to get a monotonically increasing | Henning Brauer | |
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@entrisphere.com, this implementation by me tested ckuethe, phessler, mbalmer, ok mbalmer | |||
2006-10-24 | timedelta sensors are usually updated very often, but we used to query | Henning Brauer | |
them only every 30 seconds. now query them every 5,and take the median value from 7 queries as sensor value. this takes outliers out of the equation and makes the overall result much better, especially for sensors with heavy jitter (like nmea for now) | |||
2006-10-21 | in client_nextaddr, check fd != -1 before close, just nicer this way | Henning Brauer | |
From: amandal@entrisphere.com | |||
2006-10-21 | Found that even if client fd (i.e to NTP source) is set to | Henning Brauer | |
-1 because of error, it may still participate in poll() causing poll() to repeatedly wake up on error fd. so make sure w edon't add -1 fds to pollevents to avoid unnecessary wakeups From: amandal@entrisphere.com | |||
2006-10-21 | when ntp_sendmsg fails, reset trustlevel to TRUSTLEVEL_PATHETIC | Henning Brauer | |
From: amandal@entrisphere.com | |||
2006-10-21 | EADDRNOTAVAIL after connect is one of the soft errors where we don't abort | Henning Brauer | |
too. from amandal@entrisphere.com | |||
2006-10-12 | need to call adjtime once in a while here too, otherwise sensor-only | Henning Brauer | |
servers never update the system clock | |||
2006-10-12 | internally, ntpd doesn't work with absolute offsets to system time, but | Henning Brauer | |
takes the offset it adjtime() is already correcting for into account when taking the offset from a sensor, we need to correct it by the offset between system time and ntpd view. | |||
2006-10-08 | use 'weight-value' vs. 'offset' for the weight argument; | Kevin Steves | |
ok jmc@ henning@ | |||
2006-10-03 | strtonum() with INT_MAX intead of LONG_MAX, problem pointed out by ↵ | Theo de Raadt | |
pierre-yves@spootnik.org | |||
2006-08-19 | make sure updates from sensors have the "synced" flag set | Henning Brauer | |
2006-07-01 | remove some unneeded includes; one found by vetinari | Otto Moerbeek | |
2006-06-30 | spaces | Theo de Raadt | |
2006-06-30 | don't write anything to log until we are daemonized. spotted by | Otto Moerbeek | |
david@; ok henning@ | |||
2006-06-26 | increase polling intervbal, but only after we are synced and have done | Otto Moerbeek | |
a few frequency adjustments. ok henning@ | |||
2006-06-26 | Reset adjtime() on startup; having an adjtime() active while starting | Otto Moerbeek | |
up causes overcompensation and confusing debug log entries; noticed by dtucker@ | |||
2006-06-22 | Document /var/db/ntpd.drift; ok jmc@ | Otto Moerbeek | |
2006-06-22 | Save the computed clock drift and use it on startup. ok deraadt@ | Otto Moerbeek | |
henning@ | |||
2006-06-21 | avoid a race by installing SIGCHLD handler before fork() is called. | Otto Moerbeek | |
ok henning@ ckuethe@ | |||
2006-06-18 | tsk, tsk, tsk... the rule is simple: any define consisting of | Otto Moerbeek | |
more than one token MUST be put in parentheses! | |||
2006-06-17 | Import frequency conrrection code from dragonfly, whith some changes: | Otto Moerbeek | |
only do frequency compensation if the clock is synced, and a slightly diffent way of computing the linear regression. You'll need a recent kernel and libc to use this. Testing by naddy@ and ckuethe@ and others, thanks! ok henning@ | |||
2006-06-09 | set session id and init logging in -s mode. tested by david@ and matthieu@; | Otto Moerbeek | |
ok henning@ | |||
2006-06-08 | simplify; ok henning@ | Otto Moerbeek | |
2006-06-07 | Compensate old offsets with the amount of adjustment done, avoiding | Otto Moerbeek | |
overcompensating. From DragonFly, uses recent adjtime(2) changes, so you'll need a recent kernel. ok henning@ | |||
2006-06-04 | Only invalidate stored replies if an adjustment was really made. | Otto Moerbeek | |
ok henning@ | |||
2006-06-02 | just ise "HARD" as refid with sensors for v3 clients | Henning Brauer | |
2006-06-02 | incredibly stupid typo | Henning Brauer | |
2006-06-01 | even though the bounds are long long having an upper bound of | Otto Moerbeek | |
ULONG_MAX does not work; the max upper bound is LONG_MAX, since LONG_MAX == LLONG_MAX on 64bit archs. ok deraadt@ henning@ | |||
2006-06-01 | When expanding servers, do not forget to copy weight. ok henning@ | Otto Moerbeek | |
2006-06-01 | urgs, other stuff snuck in | Henning Brauer | |
2006-06-01 | do not use /dev/hotplug for now, only one reader supported yet | Henning Brauer | |
2006-06-01 | put back regular sensors scanning | Henning Brauer | |
2006-05-31 | only actually run sensor_query when it is due, not every time poll returns | Henning Brauer | |
2006-05-29 | When ntpd backs off polling due to a negative delay, tell the user how long | Chris Kuethe | |
it will wait until the next poll. ok henning@ | |||
2006-05-29 | better wording for the "weight" section; | Jason McIntyre | |
2006-05-29 | document the optional "weight" keyword, and a little cleanup; | Jason McIntyre | |
from henning and myself | |||
2006-05-29 | when we cannot open /dev/hotplug, donn't bail, just work without | Henning Brauer | |
with ckuethe | |||
2006-05-28 | allow for weight to be added to sensors or servers, so that one can | Henning Brauer | |
weight timedelta sensors higher than ntp peers, for example ok deraadt mbalmer | |||
2006-05-28 | get clock src id from the timedelta sensor desc. | Henning Brauer | |
unfortunately I still don't have any hardware to test this ;( | |||
2006-05-28 | if sysctl gives ENOENT the sensor is gone and we remove it | Henning Brauer | |
2006-05-28 | let sensor_query handle removals itself | Henning Brauer | |
2006-05-28 | sensor_byid not needed any more | Henning Brauer | |
2006-05-28 | hotplug devid will go away in a minute, so don't use it here any longer | Henning Brauer | |
2006-05-28 | do not bother with rmeoval events, we remove sensors whoch vanished or | Henning Brauer | |
are not a timedelta sensor any more on query on the fly anyway | |||
2006-05-28 | small grammar improvement; | Jason McIntyre | |