mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Surface interval is calculated from the END of previous dive
Silly mistake Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
619ab9e828
commit
ba6c570831
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ void show_dive_stats(struct dive *dive)
|
|||
set_label(info_stat_w.date, buf);
|
||||
set_label(info_stat_w.dive_time, "%d min", (dive->duration.seconds + 30) / 60);
|
||||
if (prev_dive)
|
||||
set_label(info_stat_w.surf_intv, get_time_string(dive->when - prev_dive->when, 4));
|
||||
set_label(info_stat_w.surf_intv,
|
||||
get_time_string(dive->when - (prev_dive->when + prev_dive->duration.seconds), 4));
|
||||
else
|
||||
set_label(info_stat_w.surf_intv, "unknown");
|
||||
value = get_depth_units(dive->maxdepth.mm, &decimals, &unit);
|
||||
|
|
Loading…
Add table
Reference in a new issue