summaryrefslogtreecommitdiff
path: root/ntpshmwrite.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-07-19 22:41:20 -0700
committerGary E. Miller <gem@rellim.com>2016-07-19 22:41:47 -0700
commit71335d2ae30c46998548fb44d37bbba83bfd38ce (patch)
tree8041e52ff79ed8054241f6c49d6ad94510bd01d8 /ntpshmwrite.c
parentd761b2004d4d7fa28e63d96ee12ab7b91dde9cac (diff)
downloadgpsd-71335d2ae30c46998548fb44d37bbba83bfd38ce.tar.gz
Modify misleading comment on leap seconds.
Diffstat (limited to 'ntpshmwrite.c')
-rw-r--r--ntpshmwrite.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ntpshmwrite.c b/ntpshmwrite.c
index addc1f41..9cb43a2c 100644
--- a/ntpshmwrite.c
+++ b/ntpshmwrite.c
@@ -27,10 +27,15 @@ void ntp_write(volatile struct shmTime *shmseg,
{
struct tm tm;
- /* insist that leap seconds only happen in june and december
+ /*
+ * insist that leap seconds only happen in june and december
* GPS emits leap pending for 3 months prior to insertion
* NTP expects leap pending for only 1 month prior to insertion
- * Per http://bugs.ntp.org/1090 */
+ * Per http://bugs.ntp.org/1090
+ *
+ * ITU-R TF.460-6, Section 2.1, says laep seconds can be primarily
+ * in Jun/Dec but may be in March or September
+ */
(void)gmtime_r( &(td->real.tv_sec), &tm);
if ( 5 != tm.tm_mon && 11 != tm.tm_mon ) {
/* Not june, not December, no way */