]> git.ipfire.org Git - thirdparty/chrony.git/commit
rtc: don't drop first sample after initial trim
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 29 Nov 2021 11:30:09 +0000 (12:30 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 1 Dec 2021 08:22:26 +0000 (09:22 +0100)
commit53353529cf585ce6605e868d3a94faf3397cafae
treece6e9c23983da91d892008b4ffada6f9797d19b2
parent22bfdf204fe21792c3f49c9b48a0c8346e216a8b
rtc: don't drop first sample after initial trim

It seems there is no longer an issue with the first sample after the
initial trim and it can be accumulated. It might have been a workaround
for an unrelated bug which was fixed since then.

This fixes the number of samples reported in rtcdata briefly jumping to
65535 and also brings back the expectation that n_samples is never
negative.
rtc_linux.c