Round up diveplan duration the same way values in diveplan are rounded

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-11-28 14:59:36 +01:00 committed by Dirk Hohndel
parent 1e678d52b2
commit f6b00fb3dd

View file

@ -27,7 +27,7 @@ int diveplan_duration(struct diveplan *diveplan)
duration = dp->time;
dp = dp->next;
}
return duration / 60;
return (duration + 30) / 60;
}