diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-11-28 14:59:36 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-12-01 15:47:51 -0800 |
commit | f6b00fb3dda5529775c6044554da4d9f1a328047 (patch) | |
tree | 624c92805e3b07cd063e621fa9ee6073be500f39 /core | |
parent | 1e678d52b275805f9d9d313a6593fcbc50878e2d (diff) | |
download | subsurface-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.c | 2 |
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; } |