summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-08 17:48:07 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-08 17:48:07 +1100
commit9846ba9e945c59062463fd43ed09eb73b5a528c8 (patch)
tree499d3784002a0fbec96e9b7231b888dd9dfbbd6e /info.c
parent5692131a79f2adcfabc30804ccac62e077df402d (diff)
downloadsubsurface-9846ba9e945c59062463fd43ed09eb73b5a528c8.tar.gz
Duration of a dive is the maximum duration from all divecomputers
So far we always used the duration of the first divecomputer. The same fix needs to be done for some of the other calculations that always use the first divecomputer. This commit also removes some obsolete code from the webservice merging. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/info.c b/info.c
index bc8ae5440..91cca6123 100644
--- a/info.c
+++ b/info.c
@@ -1145,7 +1145,7 @@ static timestamp_t dive_time_widget(struct dive *dive)
*/
if (amount_selected == 1) {
timestamp_t when = current_dive->when;
- when += current_dive->dc.duration.seconds;
+ when += get_duration_in_sec(current_dive);
when += 60*60;
utc_mkdate(when, &tm);
time = &tm;