From ccddc37c1168165c8463fcb158bc6a3ad9777a33 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sat, 30 Sep 2023 15:40:40 +0100 Subject: [PATCH] Fix potential bug if the timing data is inconsistent for 10 tries. --- ptp-utilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptp-utilities.c b/ptp-utilities.c index 34184c14..958f6542 100644 --- a/ptp-utilities.c +++ b/ptp-utilities.c @@ -86,7 +86,7 @@ int get_nqptp_data(struct shm_structure *nqptp_data) { } } while ( (memcmp(&nqptp_data->main, &local_nqptp_data.secondary, sizeof(shm_structure_set)) != 0) && - (loop_count < 100)); + (loop_count < 10)); if (loop_count == 10) { debug(1, "get_nqptp_data -- main and secondary records don't match after %d attempts!", loop_count);