summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-10-09 13:16:47 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-10-09 13:16:47 -0400
commita6903655c02f0e3a7e5522996bea694d0dec47d2 (patch)
treed17426e636f544ea587feecc48a6c8d0cf3b207a /gpsd_json.c
parentafea16b0761da830578a5da712ea94495c5845f1 (diff)
downloadgpsd-a6903655c02f0e3a7e5522996bea694d0dec47d2.tar.gz
Minor bug fixes.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index a3f58e80..c2745d73 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -215,11 +215,15 @@ void json_tpv_dump(const struct gps_device_t *session,
if (policy->timing)
(void)snprintf(reply + strlen(reply),
replylen - strlen(reply),
- "\"sor\":%f,\"chars\":%lu,\"sats\":%2d,\"rtime\":%f,",
+ "\"sor\":%f,\"chars\":%lu,\"sats\":%2d,\"rtime\":%f,\"uxtime\":%lf,\"week\":%d,\"tow\":%.3f,\"rollovers\":%d",
session->sor,
session->chars,
gpsdata->satellites_used,
- rtime);
+ rtime,
+ gpsdata->fix.time,
+ session->context->gps_week,
+ session->context->gps_tow,
+ session->context->rollovers);
#endif /* TIMING_ENABLE */
}
if (reply[strlen(reply) - 1] == ',')