mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 08:55:06 -05:00
Move refclock slew and dispersion handler init
This commit is contained in:
10
refclock.c
10
refclock.c
@@ -114,6 +114,11 @@ RCL_Initialise(void)
|
|||||||
{
|
{
|
||||||
CNF_AddRefclocks();
|
CNF_AddRefclocks();
|
||||||
|
|
||||||
|
if (n_sources > 0) {
|
||||||
|
LCL_AddParameterChangeHandler(slew_samples, NULL);
|
||||||
|
LCL_AddDispersionNotifyHandler(add_dispersion, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
logfileid = CNF_GetLogRefclocks() ? LOG_FileOpen("refclocks",
|
logfileid = CNF_GetLogRefclocks() ? LOG_FileOpen("refclocks",
|
||||||
" Date (UTC) Time Refid DP L P Raw offset Cooked offset Disp.")
|
" Date (UTC) Time Refid DP L P Raw offset Cooked offset Disp.")
|
||||||
: -1;
|
: -1;
|
||||||
@@ -268,11 +273,6 @@ RCL_StartRefclocks(void)
|
|||||||
} else
|
} else
|
||||||
inst->lock_ref = -1;
|
inst->lock_ref = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n_sources > 0) {
|
|
||||||
LCL_AddParameterChangeHandler(slew_samples, NULL);
|
|
||||||
LCL_AddDispersionNotifyHandler(add_dispersion, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user