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 07328580f..bcf4fb183 100644
--- a/profile.c
+++ b/profile.c
@@ -627,7 +627,7 @@ static void fill_missing_tank_pressures(struct dive *dive, struct plot_info *pi,
magic = (interpolate.end - interpolate.start) / (double) interpolate.pressure_time;
/* Use that overall pressure change to update the current pressure */
- cur_pr[cyl] = interpolate.start + magic * interpolate.acc_pressure_time + 0.5;
+ cur_pr[cyl] = rint(interpolate.start + magic * interpolate.acc_pressure_time);
}
INTERPOLATED_PRESSURE(entry) = cur_pr[cyl];
}