[time-nuts] hpgps ntp refclock driver and leap second
Scott Mace
smace at intt.net
Mon Aug 25 11:20:52 EDT 2008
Shouldn't the hpgps ntp driver wait to raise the leap second flag until
a month before the leap second and not whenever the satellite happens
to first transmit it? See attached patch.
diff -u refclock_hpgps.c.orig refclock_hpgps.c
--- refclock_hpgps.c.orig 2008-08-25 09:49:59.000000000 -0500
+++ refclock_hpgps.c 2008-08-25 09:56:29.000000000 -0500
@@ -535,7 +535,8 @@
switch (leapchar) {
case '+':
- pp->leap = LEAP_ADDSECOND;
+ if ((month == 6) || (month == 12))
+ pp->leap = LEAP_ADDSECOND;
break;
case '0':
@@ -543,7 +544,8 @@
break;
case '-':
- pp->leap = LEAP_DELSECOND;
+ if ((month == 6) || (month == 12))
+ pp->leap = LEAP_DELSECOND;
break;
default:
More information about the time-nuts
mailing list