diff options
author | Michael Tatarinov <kukabu@gmail.com> | 2013-11-06 12:14:49 +0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-06 08:08:34 -0500 |
commit | 810b437d1eb5bf55cf28ed88a4e52c89b3cc2d18 (patch) | |
tree | 985a10a6f97f0c97bcb952d4ef1e97a8413ac233 /gpsd.c | |
parent | 39265cd4a6e40ee9716b32ee31eebbf913755881 (diff) | |
download | gpsd-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |