summaryrefslogtreecommitdiffstats
path: root/core/plannernotes.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/plannernotes.c')
-rw-r--r--core/plannernotes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c
index c72ac901a..0bfdbe7d5 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -375,7 +375,8 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
}
put_string(&buf, "</tr>\n");
newdepth = dp->depth.mm;
- lasttime = dp->time;
+ // Only add the time we actually displayed so rounding errors dont accumulate
+ lasttime += ((dp->time - lasttime + 30) / 60) * 60;
}
}
if (gaschange_after || gaschange_before) {