mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
confd: ntp: Adapt to changes in chrony 4.8
In 4.8 local clocks is not synced by default, waitsync is set to 300, this set it to 0.
This commit is contained in:
+1
-1
@@ -208,7 +208,7 @@ static int change(sr_session_ctx_t *session, struct lyd_node *config, struct lyd
|
||||
/* Local clock fallback - only if stratum is valid (1-15) */
|
||||
if (stratum >= 1 && stratum <= 15) {
|
||||
fprintf(fp, "# Local reference clock - fallback stratum %d source\n", stratum);
|
||||
fprintf(fp, "local stratum %d orphan\n\n", stratum);
|
||||
fprintf(fp, "local stratum %d orphan waitunsynced 0\n\n", stratum);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user