mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:25:07 -05:00
sys: move DRIFT_REMOVAL_INTERVAL definition
In the SunOS and Solaris drivers DRIFT_REMOVAL_INTERVAL needs to be
defined before it's used. This was broken in commit
b6a27df5b9.
This commit is contained in:
@@ -83,6 +83,8 @@ static int index=0;
|
|||||||
/* If 1, need to run dosynctodr(). If 0, don't */
|
/* If 1, need to run dosynctodr(). If 0, don't */
|
||||||
static int need_dosynctodr = -1;
|
static int need_dosynctodr = -1;
|
||||||
|
|
||||||
|
/* Interval in seconds between adjustments to cancel systematic drift */
|
||||||
|
#define DRIFT_REMOVAL_INTERVAL (4.0)
|
||||||
|
|
||||||
#define GET_ZERO (zeroes[index^=1])
|
#define GET_ZERO (zeroes[index^=1])
|
||||||
|
|
||||||
@@ -305,9 +307,6 @@ immediate_step(void)
|
|||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
/* Interval in seconds between adjustments to cancel systematic drift */
|
|
||||||
#define DRIFT_REMOVAL_INTERVAL (4.0)
|
|
||||||
|
|
||||||
static int drift_removal_running = 0;
|
static int drift_removal_running = 0;
|
||||||
static SCH_TimeoutID drift_removal_id;
|
static SCH_TimeoutID drift_removal_id;
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,9 @@ static double adjustment_requested;
|
|||||||
*/
|
*/
|
||||||
static unsigned long our_tickadj = 100;
|
static unsigned long our_tickadj = 100;
|
||||||
|
|
||||||
|
/* Interval in seconds between adjustments to cancel systematic drift */
|
||||||
|
#define DRIFT_REMOVAL_INTERVAL (4.0)
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -291,9 +294,6 @@ immediate_step(void)
|
|||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
/* Interval in seconds between adjustments to cancel systematic drift */
|
|
||||||
#define DRIFT_REMOVAL_INTERVAL (4.0)
|
|
||||||
|
|
||||||
static int drift_removal_running = 0;
|
static int drift_removal_running = 0;
|
||||||
static SCH_TimeoutID drift_removal_id;
|
static SCH_TimeoutID drift_removal_id;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user