summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Jan Schubert <Jan.Schubert@GMX.li>2013-02-02 19:38:51 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-03 07:07:12 +1100
commit99dbd667bf2a40f2ea8444780310114e353f4557 (patch)
tree4a9e686e515cf9124b62932df7c26a19f7bfd418 /profile.c
parent59cfa5c427da640ce15fe60c0d271532b26b14e4 (diff)
downloadsubsurface-99dbd667bf2a40f2ea8444780310114e353f4557.tar.gz
Fixing SP handling in planner, adding event
This moves some double/floating handling for po2 to plain integer. There are still non int values around (also for phe and po2) in the plot area. Signed-off-by: Jan Schubert <Jan.Schubert@GMX.li> 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 4b863fa01..03abf40e6 100644
--- a/profile.c
+++ b/profile.c
@@ -1877,7 +1877,7 @@ static void calculate_deco_information(struct dive *dive, struct divecomputer *d
for (j = t0+1; j <= t1; j++) {
int depth = interpolate(entry[-1].depth, entry[0].depth, j - t0, t1 - t0);
double min_pressure = add_segment(depth_to_mbar(depth, dive) / 1000.0,
- &dive->cylinder[cylinderindex].gasmix, 1, entry->po2, dive);
+ &dive->cylinder[cylinderindex].gasmix, 1, entry->po2 * 1000, dive);
tissue_tolerance = min_pressure;
}
if (t0 == t1)