summaryrefslogtreecommitdiffstats
path: root/core/statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/statistics.c')
-rw-r--r--core/statistics.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/statistics.c b/core/statistics.c
index 4ce110d07..6ed859ca2 100644
--- a/core/statistics.c
+++ b/core/statistics.c
@@ -334,6 +334,10 @@ bool is_cylinder_used(struct dive *dive, int idx)
if ((dive->cylinder[idx].start.mbar - dive->cylinder[idx].end.mbar) > SOME_GAS)
return true;
+
+ if ((dive->cylinder[idx].sample_start.mbar - dive->cylinder[idx].sample_end.mbar) > SOME_GAS)
+ return true;
+
for_each_dc(dive, dc) {
if (has_gaschange_event(dive, dc, idx))
return true;