diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-10-05 01:02:35 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-10-05 01:02:35 -0400 |
commit | 9e020f0ffaab9ddea6f9129ebb98833c070ebb03 (patch) | |
tree | b86be20087666a240b25dc45ff3b56ae76311b4b /gpsd_json.c | |
parent | 4661ae2e5fab924cca340da2f7a67cab05450026 (diff) | |
download | gpsd-9e020f0ffaab9ddea6f9129ebb98833c070ebb03.tar.gz |
Emit a count of used satellites in the extra timing attributes.
We'll use this to check Gary's Miller's suspicion that time to compute a
fix varies significantly with the number of sats in the skyview.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 217d5de7..17ed36c9 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -214,9 +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,\"cycle_count\":%lu,\"xmit_time\":%f,", + "\"cycle_start\":%f,\"cycle_count\":%lu,\"sats\":%2d,\"xmit_time\":%f,", gpsdata->cycle_start, gpsdata->cycle_count, + gpsdata->satellites_used, xmit_time); #endif /* TIMING_ENABLE */ } |