summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-28 14:59:36 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-01 15:47:51 -0800
commitf6b00fb3dda5529775c6044554da4d9f1a328047 (patch)
tree624c92805e3b07cd063e621fa9ee6073be500f39 /core
parent1e678d52b275805f9d9d313a6593fcbc50878e2d (diff)
downloadsubsurface-f6b00fb3dda5529775c6044554da4d9f1a328047.tar.gz
Round up diveplan duration the same way values in diveplan are rounded
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core')
-rw-r--r--core/plannernotes.c2
1 files changed, 1 insertions, 1 deletions
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;
}