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
@ -27,7 +27,7 @@ int diveplan_duration(struct diveplan *diveplan)
|
||||
duration = dp->time;
|
||||
dp = dp->next;
|
||||
}
|
||||
return duration / 60;
|
||||
return (duration + 30) / 60;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user