diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/statistics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/statistics.c b/core/statistics.c index 7adffa2f0..a83878300 100644 --- a/core/statistics.c +++ b/core/statistics.c @@ -376,6 +376,8 @@ volume_t *get_gas_used(struct dive *dive) end = cyl->end.mbar ? cyl->end : cyl->sample_end; if (end.mbar && start.mbar > end.mbar) gases[idx].mliter = gas_volume(cyl, start) - gas_volume(cyl, end); + else + gases[idx].mliter = 0; } return gases; |