summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-28 21:44:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-28 21:44:03 -0800
commit974ac84cbe47a8a4f238df18a5fca5835b1732f3 (patch)
tree8def887582053e5069968dfc2ba048226e342b44 /divelist.c
parent7aff4d70a62f9f91904e2bd6a574fa44aadbaf64 (diff)
parent55b3fd12a8b8c4df4e69ec9d747c77d99b40807a (diff)
downloadsubsurface-974ac84cbe47a8a4f238df18a5fca5835b1732f3.tar.gz
Merge branch 'cc-plan'
Add the ability to plan closed circuit (rebreather) dives
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c
index f6ddb0cd3..82ef339d8 100644
--- a/divelist.c
+++ b/divelist.c
@@ -763,7 +763,7 @@ static int calculate_otu(struct dive *dive, struct divecomputer *dc)
struct sample *psample = sample - 1;
t = sample->time.seconds - psample->time.seconds;
if (sample->po2) {
- po2 = sample->po2;
+ po2 = sample->po2 / 1000.0;
} else {
int o2 = active_o2(dive, dc, sample->time);
po2 = o2 / 1000.0 * depth_to_mbar(sample->depth.mm, dive) / 1000.0;