summaryrefslogtreecommitdiff
path: root/monitor_nmea0183.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-23 13:38:38 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-23 13:38:38 -0500
commit0747ffe258042efe53c10964c579af62c7b8ae30 (patch)
tree00b87b474ef0f02c1c6d0265e8faec21d5b0359a /monitor_nmea0183.c
parentf26a4032b74a018031563903ec1c1fe26efc493c (diff)
downloadgpsd-0747ffe258042efe53c10964c579af62c7b8ae30.tar.gz
Abolish all confusing uses of the word 'drift' for a time delta.
No logic changes. All regression tesrs pass. Live PPS observed.
Diffstat (limited to 'monitor_nmea0183.c')
-rw-r--r--monitor_nmea0183.c6
1 files changed, 3 insertions, 3 deletions
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 */