From 903ba42ec58a6b1093d725e7674dd8addb7f3758 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sat, 14 May 2022 18:59:06 +1000 Subject: [PATCH] Remove a slightly alarming and incorrect warning. Old information is dealt with elsewhere. --- ptp-utilities.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ptp-utilities.c b/ptp-utilities.c index e30824f8..70b26cb0 100644 --- a/ptp-utilities.c +++ b/ptp-utilities.c @@ -71,7 +71,6 @@ int get_nqptp_data(struct shm_structure *nqptp_data) { return response; } -int age_signalled = 0; int ptp_get_clock_info(uint64_t *actual_clock_id, uint64_t *time_of_sample, uint64_t *raw_offset, uint64_t *mastership_start_time) { int response = clock_ok; @@ -93,15 +92,6 @@ int ptp_get_clock_info(uint64_t *actual_clock_id, uint64_t *time_of_sample, uint *actual_clock_id = nqptp_data.master_clock_id; if (time_of_sample != NULL) *time_of_sample = nqptp_data.local_time; - int64_t age_of_sample = get_absolute_time_in_ns() - nqptp_data.local_time; - int64_t too_old_time = 1000000000; - too_old_time = too_old_time * 10; // seconds - if ((age_of_sample >= too_old_time) && (age_signalled == 0)) { - warn("PTP sample time is old -- is NQPTP running?"); - age_signalled = 1; - } - if (age_of_sample < too_old_time) - age_signalled = 0; if (raw_offset != NULL) *raw_offset = nqptp_data.local_to_master_time_offset; if (mastership_start_time != NULL)