summaryrefslogtreecommitdiffstats
path: root/core/import-shearwater.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2020-09-22 19:14:36 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-16 14:15:50 -0700
commit1a646a2e5c91929e8ffc5bdd5b2435df1843fc07 (patch)
tree4a6cc8361e6501788083e896585a18f24f559e63 /core/import-shearwater.c
parent0aaa65443348500d3b2621c68ca1e93c43d61d24 (diff)
downloadsubsurface-1a646a2e5c91929e8ffc5bdd5b2435df1843fc07.tar.gz
Duration is in seconds
The dive duration is given in seconds in the Shearwater cloud database. (At least nowadays.) Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core/import-shearwater.c')
-rw-r--r--core/import-shearwater.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/import-shearwater.c b/core/import-shearwater.c
index 685defb94..0b0fa8799 100644
--- a/core/import-shearwater.c
+++ b/core/import-shearwater.c
@@ -394,7 +394,7 @@ static int shearwater_cloud_dive(void *param, int columns, char **data, char **c
state->cur_dive->dc.maxdepth.mm = state->metric ? lrint(strtod_flags(data[6], NULL, 0) * 1000) : feet_to_mm(strtod_flags(data[6], NULL, 0));
if (data[7])
- state->cur_dive->dc.duration.seconds = atoi(data[7]) * 60;
+ state->cur_dive->dc.duration.seconds = atoi(data[7]);
if (data[8])
state->cur_dive->dc.surface_pressure.mbar = atoi(data[8]);