summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-02-02 16:11:48 -0800
committerGary E. Miller <gem@rellim.com>2015-02-02 16:11:48 -0800
commited273157309b72fda95da43bd50a468bb23476f0 (patch)
treea9ba12ad7dd466ceda4c54edd9dff7a3cabeb480 /gpsd_json.c
parentb87323aac6ec6a4e12e813fa2214e8a480b77d13 (diff)
downloadgpsd-ed273157309b72fda95da43bd50a468bb23476f0.tar.gz
Add TS_SUB() to subtract timespecs. Fix another double.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index 6d54843f..f080ba91 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -190,7 +190,7 @@ void json_tpv_dump(const struct gps_device_t *session,
/* you can not use a double here as you will lose 11 bits
* of precision */
str_appendf(reply, replylen,
- "\"pps\":%ld.$09ld,",
+ "\"pps\":%ld.$09lu,",
session->ppslast.clock.tv_sec,
session->ppslast.clock.tv_nsec);
/*@+type +formattype@*/