summaryrefslogtreecommitdiffstats
path: root/core/statistics.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2018-12-16 20:52:34 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2018-12-17 12:18:26 +0100
commitac8db01873c7caa2ac475d987269ee26c6daa46a (patch)
tree5aeec47ed5e02750b8a428076a8476519d22b498 /core/statistics.c
parent99561484adfca7a00187127dc05cafdd46737cc2 (diff)
downloadsubsurface-ac8db01873c7caa2ac475d987269ee26c6daa46a.tar.gz
Show average max depth in yearly statistics
this was requested in #1854 and I think this suggestion makes sense Fixes #1854 Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/statistics.c')
-rw-r--r--core/statistics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/statistics.c b/core/statistics.c
index 6f5efe64f..d6d9418d7 100644
--- a/core/statistics.c
+++ b/core/statistics.c
@@ -53,6 +53,7 @@ static void process_dive(struct dive *dive, stats_t *stats)
stats->max_depth.mm = dive->maxdepth.mm;
if (stats->min_depth.mm == 0 || dive->maxdepth.mm < stats->min_depth.mm)
stats->min_depth.mm = dive->maxdepth.mm;
+ stats->combined_max_depth.mm += dive->maxdepth.mm;
process_temperatures(dive, stats);