diff --git a/core/plannernotes.c b/core/plannernotes.c index 167ccaff7..d4b335888 100644 --- a/core/plannernotes.c +++ b/core/plannernotes.c @@ -27,7 +27,7 @@ int diveplan_duration(struct diveplan *diveplan) duration = dp->time; dp = dp->next; } - return duration / 60; + return (duration + 30) / 60; }