diff options
author | Gary E. Miller <gem@rellim.com> | 2015-04-06 14:59:15 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-04-06 14:59:15 -0700 |
commit | 3e2f31bbbab38947cf279990f5ce876bdb14316d (patch) | |
tree | d877b99732f761a5d61fda656d73a83572e83624 /libgps_json.c | |
parent | 12e931ae073700ad2c1c07f5cc7c5262629ffbba (diff) | |
download | gpsd-3e2f31bbbab38947cf279990f5ce876bdb14316d.tar.gz |
Fix a dodgy comment.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libgps_json.c b/libgps_json.c index 766029b5..2dac60dc 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -381,10 +381,8 @@ int json_pps_read(const char *buf, struct gps_data_t *gpsdata, memset(&gpsdata->pps, '\0', sizeof(gpsdata->pps)); status = json_read_object(buf, json_attrs_pps, endptr); - /* - * This is theoretically dodgy, but in practice likely not - * to break until GPSes are obsolete. - */ + + /* This is good until GPS are more than nanosec accurate */ gpsdata->pps.real.tv_sec = (time_t)real_sec; gpsdata->pps.real.tv_nsec = (long)real_nsec; gpsdata->pps.clock.tv_sec = (time_t)clock_sec; |