]> git.ipfire.org Git - thirdparty/chrony.git/commit
reference: report same values in tracking command as in NTP
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 7 Apr 2016 15:09:01 +0000 (17:09 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 8 Apr 2016 14:21:19 +0000 (16:21 +0200)
commit10719d6d350566acbbad5fddedf40e36f4142347
tree792215f1b9362b1f66573695e2af4e4cc2873b8f
parent59938efd23b72d2b689b912bf1f8171233fde8b3
reference: report same values in tracking command as in NTP

Use REF_GetReferenceParams() in the tracking command to simplify the
code and report the same values as what NTP clients of the server see.

When the local reference mode is active, this changes the leap status to
synchronised and reference time to one second behind current time. When
not synchronised, the root delay and root dispersion are now 1 second.
reference.c
reports.h
test/simulation/115-cmdmontime