mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:43:25 +00:00
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:
parent
1e678d52b2
commit
f6b00fb3dd
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ int diveplan_duration(struct diveplan *diveplan)
|
|||
duration = dp->time;
|
||||
dp = dp->next;
|
||||
}
|
||||
return duration / 60;
|
||||
return (duration + 30) / 60;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue