Re: [chrony-dev] [PATCH 2/3] refclock: Include TAI offset when adding samples

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Mon, Oct 9, 2017 at 8:41 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
> On second thought, it would better to not accumulate samples when the
> TAI offset is unknown, so something like this:
>
>     if (instance->tai) {
>       tai_offset = REF_GetTaiOffset(sample_time);
>       if (!tai_offset) {
>         DEBUG_LOG("refclock sample ignored unknown TAI offset");
>         return 0;
>       }
>
>       offset += tai_offset;
>     }

Got it.  Thanks for the review.  I'll send a v2 along soon
incorporating your feedback.

-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/