From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 12 May 2021 11:51:48 +0000 (+0100) Subject: Allow a new master to do a full resync when it becomes master. It seems that they... X-Git-Tag: 1.1-dev~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cb81858b0024691afaf29afa56e7a2b3cc73ddf;p=thirdparty%2Fnqptp.git Allow a new master to do a full resync when it becomes master. It seems that they can get lazy when not masters. --- diff --git a/nqptp-clock-sources.c b/nqptp-clock-sources.c index e1567e2..fd022b0 100644 --- a/nqptp-clock-sources.c +++ b/nqptp-clock-sources.c @@ -214,6 +214,7 @@ void update_master() { clocks_private[best_so_far].flags |= (1 << clock_is_master); // master_clock_index = best_so_far; if (old_master != best_so_far) { + clocks_private[best_so_far].previous_offset_time = 0; // allow full resync update_master_clock_info(clocks_private[best_so_far].clock_id, (const char *)&clocks_private[best_so_far].ip, clocks_private[best_so_far].local_time,