summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-10-23 22:40:38 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-10-23 22:40:38 +0000
commitf801e63aa987cc0b7b8376340c09cee145d2664d (patch)
tree1d14da207d25236513cb3643e395743e57d66469 /gpsd.c
parente27c0a6abac9d0cc71bf18c88c10d7d162a899a6 (diff)
downloadgpsd-f801e63aa987cc0b7b8376340c09cee145d2664d.tar.gz
Don't pretend we offer more accuracy than the GPS system supports.
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 24386f9f..fa0787d1 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -817,7 +817,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),
- " %.3f",
+ " %.2f",
whoami->fixbuffer.time);
else
(void)strlcat(phrase, " ?", BUFSIZ);
@@ -1020,7 +1020,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),
- " %.3f ",
+ " %.2f ",
whoami->device->gpsdata.sentence_time);
else
(void)strlcat(phrase, " ? ", BUFSIZ);