diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-10 19:27:38 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-10 19:27:38 -0800 |
commit | d4e08feaecf88fee5ef8f268d6dc63f27f1cc590 (patch) | |
tree | 943421d0615907dc5f19923b51f09b101530f632 /gpsd_json.c | |
parent | 9bb0afeac71876dba31fdc77ee30194603f61049 (diff) | |
download | gpsd-d4e08feaecf88fee5ef8f268d6dc63f27f1cc590.tar.gz |
RAW: Save space in the JSON. Data from GREIS.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 86079040..b38a3668 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -737,7 +737,7 @@ void json_raw_dump(const struct gps_data_t *gpsdata, if (gpsdata->dev.path[0] != '\0') str_appendf(reply, replylen, "\"device\":\"%s\",", gpsdata->dev.path); - str_appendf(reply, replylen, "\"time\":%ld,\"nsec\":%9ld,\"rawdata\":[", + str_appendf(reply, replylen, "\"time\":%ld,\"nsec\":%ld,\"rawdata\":[", (long)gpsdata->raw.mtime.tv_sec, gpsdata->raw.mtime.tv_nsec); for (i = 0; i < MAXCHANNELS; i++) { @@ -747,7 +747,7 @@ void json_raw_dump(const struct gps_data_t *gpsdata, } str_appendf(reply, replylen, "{\"gnssid\":%d,\"svid\":%d,\"snr\":%d,\"freqid\":%d," - "\"obs\":\"%3s\",\"lli\":%1d,\"locktime\":%5d", + "\"obs\":\"%s\",\"lli\":%1d,\"locktime\":%d", gpsdata->raw.meas[i].gnssid, gpsdata->raw.meas[i].svid, gpsdata->raw.meas[i].snr, gpsdata->raw.meas[i].freqid, gpsdata->raw.meas[i].obs_code, gpsdata->raw.meas[i].lli, |