From 1a646a2e5c91929e8ffc5bdd5b2435df1843fc07 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Tue, 22 Sep 2020 19:14:36 +0300 Subject: Duration is in seconds The dive duration is given in seconds in the Shearwater cloud database. (At least nowadays.) Signed-off-by: Miika Turkia --- core/import-shearwater.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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]); -- cgit v1.2.3-70-g09d2