diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-09-15 08:15:25 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-15 08:52:55 -0700 |
commit | ed4e71a817e370f397d5f4b7dc613f01b5564456 (patch) | |
tree | 43777d83a00faef64e4c238cb8f5688dab1dd52e /parse-xml.c | |
parent | fa76733d255b32ecaabc600c8d582b8baa9d27c2 (diff) | |
download | subsurface-ed4e71a817e370f397d5f4b7dc613f01b5564456.tar.gz |
Fix uemis depth calculation in the uemis XML importer
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c index cecfbb304..82149cf8a 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; |