summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-10-25 15:38:54 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-10-25 15:38:54 +0000
commit1e1d2d136e5fd07b08a894fc995b61c3ce7e7df4 (patch)
tree4ab16e10493d2d8cc8a93afc24d34154d94376fa /gpsd.c
parent8067d2f304f0154f84f6e279d16a86c62ae67d96 (diff)
downloadgpsd-1e1d2d136e5fd07b08a894fc995b61c3ce7e7df4.tar.gz
Restore reporting time to millisecond resolution.
I was wrong about this; it isn't the GPS system that has a centisecond limit, it's some vendor implementations of NMEA.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index b23123a5..8d690f0d 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -812,7 +812,7 @@ static int handle_gpsd_request(int cfd, char *buf, int buflen)
if (isnan(whoami->fixbuffer.time)==0)
(void)snprintf(phrase+strlen(phrase),
sizeof(phrase)-strlen(phrase),
- " %.2f",
+ " %.3f",
whoami->fixbuffer.time);
else
(void)strlcat(phrase, " ?", BUFSIZ);
@@ -1015,7 +1015,7 @@ static int handle_gpsd_request(int cfd, char *buf, int buflen)
if (isnan(whoami->device->gpsdata.sentence_time)==0)
(void)snprintf(phrase+strlen(phrase),
sizeof(phrase)-strlen(phrase),
- " %.2f ",
+ " %.3f ",
whoami->device->gpsdata.sentence_time);
else
(void)strlcat(phrase, " ? ", BUFSIZ);