From 0747ffe258042efe53c10964c579af62c7b8ae30 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 23 Feb 2015 13:38:38 -0500 Subject: Abolish all confusing uses of the word 'drift' for a time delta. No logic changes. All regression tesrs pass. Live PPS observed. --- monitor_nmea0183.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'monitor_nmea0183.c') diff --git a/monitor_nmea0183.c b/monitor_nmea0183.c index 52ff0a73..1accd7e2 100644 --- a/monitor_nmea0183.c +++ b/monitor_nmea0183.c @@ -180,7 +180,7 @@ static void nmea_update(void) { char **fields; #ifdef PPS_ENABLE - struct timedrift_t drift; + struct timedelta_t ppstimes; #endif /* PPS_ENABLE */ assert(cookedwin != NULL); @@ -326,10 +326,10 @@ static void nmea_update(void) #ifdef PPS_ENABLE /*@-compdef@*/ /*@-type -noeffect@*/ /* splint is confused about struct timespec */ - if (pps_thread_lastpps(&session, &drift) > 0) { + if (pps_thread_lastpps(&session, &ppstimes) > 0) { /* NOTE: can not use double here due to precision requirements */ struct timespec timedelta; - TS_SUB( &timedelta, &drift.clock, &drift.real); + TS_SUB( &timedelta, &ppstimes.clock, &ppstimes.real); if ( 86400 < (long)labs(timedelta.tv_sec) ) { /* more than one day off, overflow */ /* need a bigger field to show it */ -- cgit v1.2.1