From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 21 Dec 2021 15:03:28 +0000 (+0000) Subject: Wait for 300 secodns before complaining about the age of a sync. X-Git-Tag: 4.1-rc1~24^2~338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6eb23a04c0bef5bbc318ef5ce5cc0a57b22512;p=thirdparty%2Fshairport-sync.git Wait for 300 secodns before complaining about the age of a sync. --- diff --git a/rtp.c b/rtp.c index 4bd07a60..17ee7d8b 100644 --- a/rtp.c +++ b/rtp.c @@ -1280,7 +1280,7 @@ int get_ptp_anchor_local_time_info(rtsp_conn_info *conn, uint32_t *anchorRTP, if (response == clock_ok) { uint64_t time_now = get_absolute_time_in_ns(); int64_t time_since_sample = time_now - actual_time_of_sample; - if (time_since_sample > 10000000000) { + if (time_since_sample > 300000000000) { if (long_time_notifcation_done == 0) { debug(1, "The last PTP timing sample is pretty old: %f seconds.", 0.000000001 * time_since_sample);