mirror of
https://frontier.innolan.net/rainlance/amiga-ntimed.git
synced 2026-05-05 11:02:40 +00:00
Add signal detection to TODO and time_unix.c and use this to let
SIGHUP restart processing in ntimed-client. Have the NTP_filter clear state and the PLL start over when TB_generation changes. Simplify the NTP_PeerSet code with respect to real/simulated peers, and add some preliminary scaffolding for the server maintenance code.
This commit is contained in:
@@ -44,6 +44,7 @@ static struct timestamp pll_last_time;
|
||||
static int pll_mode;
|
||||
static double pll_a, pll_b;
|
||||
static struct timestamp pll_t0;
|
||||
static int pll_generation;
|
||||
|
||||
static void __match_proto__(pll_f)
|
||||
pll_std(struct ocx *ocx, double offset, double weight)
|
||||
@@ -58,6 +59,11 @@ pll_std(struct ocx *ocx, double offset, double weight)
|
||||
dt = 0;
|
||||
used_a = used_b = 0;
|
||||
|
||||
if (pll_generation != TB_generation) {
|
||||
pll_mode = 0;
|
||||
pll_generation = TB_generation;
|
||||
}
|
||||
|
||||
switch (pll_mode) {
|
||||
|
||||
case 0: /* Startup */
|
||||
|
||||
Reference in New Issue
Block a user