]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 569] Use the correct precision for the Leitch CSD-5300
authorHarlan Stenn <stenn@ntp.org>
Sun, 18 Mar 2007 00:35:08 +0000 (19:35 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sun, 18 Mar 2007 00:35:08 +0000 (19:35 -0500)
bk: 45fc893cfVfkacCrJk5Au4KCjdispA

ChangeLog
ntpd/refclock_leitch.c

index fa1851145472951032b278d9f823968b9e105751..7f5a18c2128b2c67e73e2b0e288064e542ff7dcd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 569] Use the correct precision for the Leitch CSD-5300.
 * [Bug 795] Moved declaration of variable to top of function.
 * [Bug 798] ntpq [p typo crashes ntpq/ntpdc.
 * [Bug 786] Fix refclock_bancomm.c on Solaris.
index 908c72418800f9129522260b4a1164c957e141da..fe6f7725d6293aae5189a5064c4b267dec23cf34 100644 (file)
@@ -43,6 +43,7 @@
  *     STATUS: G (good), D (diag fail), T (time not provided) or
  *             P (last phone update failed)
  */
+#define PRECISION      (-20)   /* 1x10-8 */
 #define MAXUNITS 1             /* max number of LEITCH units */
 #define LEITCHREFID    "ATOM"  /* reference id */
 #define LEITCH_DESCRIPTION "Leitch: CSD 5300 Master Clock System Driver"
@@ -393,7 +394,7 @@ leitch_start(
         * All done.  Initialize a few random peer variables, then
         * return success.
         */
-       peer->precision = 0;
+       peer->precision = PRECISION;
        peer->stratum = stratumtouse[unit];
        peer->refid = refid[unit];
        unitinuse[unit] = 1;