From: Dirk Hohndel Date: Thu, 15 Sep 2011 15:15:25 +0000 (-0700) Subject: Fix uemis depth calculation in the uemis XML importer X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ed4e71a817e370f397d5f4b7dc613f01b5564456;p=ext%2Fsubsurface.git Fix uemis depth calculation in the uemis XML importer Signed-off-by: Dirk Hohndel Signed-off-by: Linus Torvalds --- diff --git a/parse-xml.c b/parse-xml.c index cecfbb3..82149cf 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -422,7 +422,7 @@ static void water_pressure(char *buffer, void *_depth) * atm to cm. Why not mm? The precision just isn't * there. */ - cm = 100 * (atm - 1) + 0.5; + cm = 100 * atm + 0.5; if (cm > 0) { depth->mm = 10 * (long)cm; break;