summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
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 decc07aa4..a07583857 100644
--- a/divelist.c
+++ b/divelist.c
@@ -246,7 +246,7 @@ static int calculate_cns(struct dive *dive)
po2 = sample->po2.mbar;
} else {
int o2 = active_o2(dive, dc, sample->time);
- po2 = o2 / depth_to_atm(sample->depth.mm, dive);
+ po2 = o2 * depth_to_atm(sample->depth.mm, dive);
}
/* Find what table-row we should calculate % for */
for (j = 1; j < sizeof(cns_table) / (sizeof(int) * 3); j++)