diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-23 16:48:09 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-23 16:48:09 -0400 |
commit | a2cec836743bdb2bd18c37afe84f3848ed0e6d7e (patch) | |
tree | 4c56e1c42632ff36140c1a6472743d034e8100b0 /libgps_json.c | |
parent | af6a5f19e743bd8103fc1a6ebfa20d394ca10980 (diff) | |
download | gpsd-a2cec836743bdb2bd18c37afe84f3848ed0e6d7e.tar.gz |
Fix bonehead error in the code for backward compatibility with Unix timestamps.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_json.c b/libgps_json.c index 06b537e0..e327325d 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -203,7 +203,7 @@ static int json_sky_read(const char *buf, struct gps_data_t *gpsdata, .len = sizeof(gpsdata->tag)}, {"time", t_string, .addr.string = tbuf, .len = sizeof(tbuf)}, - {"time", t_real, .addr.real = &gpsdata->fix.time, + {"time", t_real, .addr.real = &gpsdata->skyview_time, .dflt.real = NAN}, {"hdop", t_real, .addr.real = &gpsdata->dop.hdop, .dflt.real = NAN}, |