summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/statistics.c1
-rw-r--r--core/statistics.h1
2 files changed, 2 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);
diff --git a/core/statistics.h b/core/statistics.h
index d3707b9cb..6072f93b2 100644
--- a/core/statistics.h
+++ b/core/statistics.h
@@ -24,6 +24,7 @@ typedef struct
depth_t max_depth;
depth_t min_depth;
depth_t avg_depth;
+ depth_t combined_max_depth;
volume_t max_sac;
volume_t min_sac;
volume_t avg_sac;