From aa4ed491fdac62d011fc66d39c364b104a95b6e3 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 22 Jul 2015 22:03:41 +0300 Subject: Divinglog import: fix maximum depth Max depth is recorded in floating point in metadata. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse-xml.c b/parse-xml.c index 3d0c6a1e5..429277f49 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -3109,7 +3109,7 @@ extern int divinglog_dive(void *param, int columns, char **data, char **column) utf8_string(data[4], &cur_dive->notes); if (data[5]) - cur_dive->dc.maxdepth.mm = atoi(data[5]) * 1000; + cur_dive->dc.maxdepth.mm = atof(data[5]) * 1000; if (data[6]) cur_dive->dc.duration.seconds = atoi(data[6]) * 60; -- cgit v1.2.3-70-g09d2