summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.c b/dive.c
index 46121848c..34025d68c 100644
--- a/dive.c
+++ b/dive.c
@@ -25,7 +25,7 @@ void add_event(struct divecomputer *dc, int time, int type, int flags, int value
p = &dc->events;
/* insert in the sorted list of events */
- while (*p && (*p)->time.seconds < time)
+ while (*p && (*p)->time.seconds <= time)
p = &(*p)->next;
ev->next = *p;
*p = ev;