Fix potential bug if the timing data is inconsistent for 10 tries.

This commit is contained in:
Mike Brady
2023-09-30 15:40:40 +01:00
parent afaf94b735
commit ccddc37c11
+1 -1
View File
@@ -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);