diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-23 13:38:38 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-23 13:38:38 -0500 |
commit | 0747ffe258042efe53c10964c579af62c7b8ae30 (patch) | |
tree | 00b87b474ef0f02c1c6d0265e8faec21d5b0359a /monitor_ubx.c | |
parent | f26a4032b74a018031563903ec1c1fe26efc493c (diff) | |
download | gpsd-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_ubx.c')
-rw-r--r-- | monitor_ubx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c index c0cfab3f..9ad21286 100644 --- a/monitor_ubx.c +++ b/monitor_ubx.c @@ -234,7 +234,7 @@ static void ubx_update(void) size_t data_len; unsigned short msgid; #ifdef PPS_ENABLE - struct timedrift_t drift; + struct timedelta_t ppstimes; #endif /* PPS_ENABLE */ buf = session.lexer.outbuffer; @@ -257,10 +257,10 @@ static void ubx_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 */ |