summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-11-20 15:55:11 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-20 07:46:47 -0800
commita4679300cc035e34f6dffa92dde72859a79334fe (patch)
treef6f7694a0f81b58e62de24cd776ee1a16d699ba1 /profile.c
parent54237cb9a7949f34e837d8fc2f0767729950fbf5 (diff)
downloadsubsurface-a4679300cc035e34f6dffa92dde72859a79334fe.tar.gz
Correctly computer O2 partial pressure
I had forgotten a / 1000.0 in the conversion of partial pressures from (double) bar to (int32) mbar. Fixes #763 Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index 364385f6b..849f6b454 100644
--- a/profile.c
+++ b/profile.c
@@ -865,7 +865,7 @@ static int calculate_ccr_po2(struct plot_data *entry, struct divecomputer *dc) {
}
switch (np) {
case 0: // Uhoh
- return entry->o2pressure.mbar / 1000.0;
+ return entry->o2pressure.mbar;
case 1: // Return what we have
return sump;
case 2: // Take the average