summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-21 16:19:23 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-21 16:19:23 -0400
commit4d35b37c1f906265221363e6ba6b879cad9ab32b (patch)
tree7a92cd39b585079c6c7e256c667e206efc2f48b8 /gpsd_json.c
parent02a8d5b006544a57a96e8282cdff7091ad596007 (diff)
downloadgpsd-4d35b37c1f906265221363e6ba6b879cad9ab32b.tar.gz
Add decode time to the profiling.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index 41d71164..e694a431 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -214,8 +214,8 @@ void json_tpv_dump(const struct gps_data_t *gpsdata,
if (policy->timing)
(void)snprintf(reply + strlen(reply),
replylen - strlen(reply),
- "\"xmit_time\":%f,",
- xmit_time);
+ "\"cycle_start\":%f,\"xmit_time\":%f,",
+ gpsdata->cycle_start, xmit_time);
#endif /* TIMING_ENABLE */
}
if (reply[strlen(reply) - 1] == ',')