summaryrefslogtreecommitdiff
path: root/ntpshm.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-25 14:58:11 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-25 15:41:36 -0500
commitbf6b99d4440d85c5cbe506f7e1076394e1c96f5c (patch)
tree3b044d6c840eb70ab4a28c30562697c4e6bfa5eb /ntpshm.h
parent53a17f88a48952bcbc9903c80b9a1c5aa2cd3198 (diff)
downloadgpsd-bf6b99d4440d85c5cbe506f7e1076394e1c96f5c.tar.gz
ntpd uses the precision field afer all.
Diffstat (limited to 'ntpshm.h')
-rw-r--r--ntpshm.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ntpshm.h b/ntpshm.h
index 7ea8ad0c..b30d624d 100644
--- a/ntpshm.h
+++ b/ntpshm.h
@@ -25,8 +25,6 @@
* -10 is about 1 mSec jitter (GR-601W or other USB with 1ms poll interval)
* -13 is about 100 uSec
* -20 is about 1 nSec (typical for serial PPS)
- * The precision field is not used in ntpd 4.2.8 and probably not in other
- * recent versions either.
*/
struct shmTime
@@ -45,7 +43,7 @@ struct shmTime
time_t receiveTimeStampSec;
int receiveTimeStampUSec;
int leap; /* not leapsecond offset, a notification code */
- int precision; /* not used */
+ int precision; /* log(2) of source jitter */
int nsamples; /* not used */
volatile int valid;
unsigned clockTimeStampNSec; /* Unsigned ns timestamps */