summaryrefslogtreecommitdiffstats
path: root/core/statistics.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-06 16:50:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-07 17:50:51 +0300
commitdf16866292ac16430e840ccc0013a5914303cd0f (patch)
tree5fb145cbf2b8da6d37bb5b9e7b4d669c7fd90df2 /core/statistics.h
parentb61f6f66d8859e62023e3818879b90de529e9a72 (diff)
downloadsubsurface-df16866292ac16430e840ccc0013a5914303cd0f.tar.gz
Statistics: only consider selected dives in HTML export statistics
If only selected dives were exported into HTML, the statistics would nevertheless cover all dives. A counter-intuitive behavior. Fix by adding a selected_only flag to calculate_stats_summary(). Reported-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/statistics.h')
-rw-r--r--core/statistics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/statistics.h b/core/statistics.h
index d0cf5ab67..d3707b9cb 100644
--- a/core/statistics.h
+++ b/core/statistics.h
@@ -52,7 +52,7 @@ extern "C" {
extern char *get_minutes(int seconds);
extern void init_stats_summary(struct stats_summary *stats);
extern void free_stats_summary(struct stats_summary *stats);
-extern void calculate_stats_summary(struct stats_summary *stats);
+extern void calculate_stats_summary(struct stats_summary *stats, bool selected_only);
extern void calculate_stats_selected(stats_t *stats_selection);
extern void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS]);
extern void selected_dives_gas_parts(volume_t *o2_tot, volume_t *he_tot);