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:
Mattias Walström
2026-03-04 09:53:03 +01:00
parent 8fcb291f5e
commit 6e5283f5d1
+1 -1
View File
@@ -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);
}
}