diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-10-09 13:16:47 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-10-09 13:16:47 -0400 |
commit | a6903655c02f0e3a7e5522996bea694d0dec47d2 (patch) | |
tree | d17426e636f544ea587feecc48a6c8d0cf3b207a /gpsd_json.c | |
parent | afea16b0761da830578a5da712ea94495c5845f1 (diff) | |
download | gpsd-a6903655c02f0e3a7e5522996bea694d0dec47d2.tar.gz |
Minor bug fixes.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 8 |
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] == ',') |