diff options
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r-- | libdivecomputer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c index c4614812d..076126dfb 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -193,7 +193,9 @@ static int find_dive(struct dive *dive, device_data_t *devdata) for (i = 0; i < dive_table.preexisting; i++) { struct dive *old = dive_table.dives[i]; - if (dive->when != old->when) + if (dive->when > old->when + 60) + continue; + if (dive->when + 60 < old->when) continue; return 1; } |