summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorMichael Tatarinov <kukabu@gmail.com>2013-11-06 12:14:49 +0400
committerEric S. Raymond <esr@thyrsus.com>2013-11-06 08:08:34 -0500
commit810b437d1eb5bf55cf28ed88a4e52c89b3cc2d18 (patch)
tree985a10a6f97f0c97bcb952d4ef1e97a8413ac233 /gpsd.c
parent39265cd4a6e40ee9716b32ee31eebbf913755881 (diff)
downloadgpsd-810b437d1eb5bf55cf28ed88a4e52c89b3cc2d18.tar.gz
Sets precision inside ntpshm_put().
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index 038ed3e3..2e903e59 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1551,8 +1551,7 @@ static void all_reports(struct gps_device_t *device, gps_mask_t changed)
fractional = modf(fix_time, &integral);
td.real.tv_sec = (time_t)integral;
td.real.tv_nsec = (long)(fractional * 1e+9);
- /* Any NMEA will be about -1 or -2. Garmin GPS-18/USB is around -6 or -7. */
- (void)ntpshm_put(device, device->shmIndex, &td, -1);
+ (void)ntpshm_put(device, device->shmIndex, &td);
device->last_fixtime = device->newdata.time;
}
#endif /* NTPSHM_ENABLE */