From ed4e71a817e370f397d5f4b7dc613f01b5564456 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 15 Sep 2011 08:15:25 -0700 Subject: [PATCH] Fix uemis depth calculation in the uemis XML importer Signed-off-by: Dirk Hohndel Signed-off-by: Linus Torvalds --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0