summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/profile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/profile.c b/core/profile.c
index d62caab93..ce053a67c 100644
--- a/core/profile.c
+++ b/core/profile.c
@@ -1085,7 +1085,9 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru
if (final_tts > 0)
deco_time = pi->maxtime + final_tts - time_deep_ceiling;
else if (time_clear_ceiling > 0)
- deco_time = time_clear_ceiling - time_deep_ceiling;
+ /* Consistent with planner, deco_time ends after ascending (20-40s @9m/min from 3-6m)
+ at end of whole minute after clearing ceiling */
+ deco_time = ROUND_UP(time_clear_ceiling, 60) + 30 - time_deep_ceiling;
vpmb_next_gradient(deco_time, surface_pressure / 1000.0);
final_tts = 0;
last_ndl_tts_calc_time = 0;