summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index ecec7bb8f..d4369d97f 100644
--- a/profile.c
+++ b/profile.c
@@ -1727,6 +1727,7 @@ static struct plot_info *create_plot_info(struct dive *dive, int nr_samples, str
if (ev->time.seconds == sample->time.seconds - 1) {
entry->sec = ev->time.seconds - 1;
(entry+1)->sec = ev->time.seconds;
+ } else {
entry->sec = ev->time.seconds;
(entry+1)->sec = ev->time.seconds + 1;
}