summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
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 14b76f70e..07328580f 100644
--- a/profile.c
+++ b/profile.c
@@ -226,7 +226,7 @@ static int get_local_sac(struct plot_data *entry1, struct plot_data *entry2, str
/* Mean pressure in ATM */
depth = (entry1->depth + entry2->depth) / 2;
- atm = (double) depth_to_mbar(depth, dive) / SURFACE_PRESSURE;
+ atm = depth_to_atm(depth, dive);
cyl = dive->cylinder + index;