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_sirf.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_sirf.c')
-rw-r--r-- | monitor_sirf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c index bf76c955..42fbb189 100644 --- a/monitor_sirf.c +++ b/monitor_sirf.c @@ -283,7 +283,7 @@ static void sirf_update(void) uint8_t dgps; char tbuf[JSON_DATE_MAX+1]; #ifdef PPS_ENABLE - struct timedrift_t drift; + struct timedelta_t ppstimes; #endif /* PPS_ENABLE */ /* splint pacification */ @@ -390,7 +390,7 @@ static void sirf_update(void) case 0x07: /* Response - Clock Status Data */ display(mid7win, 1, 5, "%2d", getub(buf, 7)); /* SVs */ - display(mid7win, 1, 16, "%lu", getbeu32(buf, 8)); /* Clock drift */ + display(mid7win, 1, 16, "%lu", getbeu32(buf, 8)); /* Clock ppstimes */ display(mid7win, 1, 29, "%lu", getbeu32(buf, 12)); /* Clock Bias */ display(mid7win, 2, 11, "%lu", getbeu32(buf, 16)); /* Estimated Time */ monitor_log("CSD 0x07="); @@ -590,10 +590,10 @@ static void sirf_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: cannot 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 */ |