From a4679300cc035e34f6dffa92dde72859a79334fe Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Thu, 20 Nov 2014 15:55:11 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile.c') 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 -- cgit v1.2.3-70-g09d2