summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-22 01:32:07 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-22 01:32:07 -0400
commit8bc89f362ad7ce69f0960ebab60be52f3c53b5db (patch)
treec58740642200ee222bd6091858f0d0aef9c46b3e /gpsd_json.c
parent631d6e6eddfe566b801e4440e5254cc4f80bab8d (diff)
downloadgpsd-8bc89f362ad7ce69f0960ebab60be52f3c53b5db.tar.gz
Prfile numbers now include a per-cycle chracter count.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index e694a431..217d5de7 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -214,8 +214,10 @@ void json_tpv_dump(const struct gps_data_t *gpsdata,
if (policy->timing)
(void)snprintf(reply + strlen(reply),
replylen - strlen(reply),
- "\"cycle_start\":%f,\"xmit_time\":%f,",
- gpsdata->cycle_start, xmit_time);
+ "\"cycle_start\":%f,\"cycle_count\":%lu,\"xmit_time\":%f,",
+ gpsdata->cycle_start,
+ gpsdata->cycle_count,
+ xmit_time);
#endif /* TIMING_ENABLE */
}
if (reply[strlen(reply) - 1] == ',')