diff options
author | glerch <guido.lerch@gmail.com> | 2015-09-07 23:34:52 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-10 12:26:51 -0700 |
commit | bd00c6b83bec7a1fda93ec5594df957b0364668e (patch) | |
tree | 7c509f547cd069a015400b171d2989bb81395a77 | |
parent | 0dd32d3495c703ace38f5ab500c3a87157910e5b (diff) | |
download | subsurface-bd00c6b83bec7a1fda93ec5594df957b0364668e.tar.gz |
Uemis downloader: fix bug when creating dive site
Use dive->when when creating a dive site instead of time(NULL) as Dirk
suggested
Signed-off-by: glerch <guido.lerch@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | uemis-downloader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 8500708ed..058dbc229 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -892,8 +892,7 @@ static bool process_raw_buffer(device_data_t *devdata, uint32_t deviceid, char * if (for_dive) *for_dive = atoi(val); } else if (!is_log && dive && !strcmp(tag, "divespot_id")) { - timestamp_t t; - dive->dive_site_uuid = create_dive_site("from Uemis", (int)time(NULL)); + dive->dive_site_uuid = create_dive_site("from Uemis", dive->when); track_divespot(val, dive->dc.diveid, dive->dive_site_uuid); #if UEMIS_DEBUG & 2 fprintf(debugfile, "Created divesite %d for diveid : %d\n", dive->dive_site_uuid, dive->dc.diveid); |