From f6b00fb3dda5529775c6044554da4d9f1a328047 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Tue, 28 Nov 2017 14:59:36 +0100 Subject: Round up diveplan duration the same way values in diveplan are rounded Signed-off-by: Stefan Fuchs --- core/plannernotes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/plannernotes.c') 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; } -- cgit v1.2.3-70-g09d2