From f6b00fb3dda5529775c6044554da4d9f1a328047 Mon Sep 17 00:00:00 2001
From: Stefan Fuchs <sfuchs@gmx.de>
Date: Tue, 28 Nov 2017 14:59:36 +0100
Subject: [PATCH] Round up diveplan duration the same way values in diveplan
 are rounded

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
---
 core/plannernotes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }