summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-12 21:01:14 -0800
committerGary E. Miller <gem@rellim.com>2018-11-12 21:01:14 -0800
commit8e255687c1b1ebe9cdab2d7207f397a5f82fbcb8 (patch)
treea77f7caff37e6fbe1e2fab2792ef278a3cc56e25
parent3ec7e388c424fcb71efa392c3eb987aea9e38e02 (diff)
downloadgpsd-8e255687c1b1ebe9cdab2d7207f397a5f82fbcb8.tar.gz
gpsrinex: 2nd try at getting modulo right.
-rw-r--r--gpsrinex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsrinex.c b/gpsrinex.c
index a14c2249..9d8bb954 100644
--- a/gpsrinex.c
+++ b/gpsrinex.c
@@ -554,7 +554,7 @@ static void print_raw(struct gps_data_t *gpsdata)
return;
}
/* opus insists (time % interval) = 0 */
- if (0 != (last_mtime.tv_sec % sample_interval)) {
+ if (0 != (gpsdata->raw.mtime.tv_sec % sample_interval)) {
return;
}