From 34a747deada3b1321f779cd032cd50be91aa322d Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 3 Oct 2013 15:54:09 +0200 Subject: [PATCH] Bugfix typo in get_gas_used Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- statistics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statistics.c b/statistics.c index 1b6a709a6..83675cf22 100644 --- a/statistics.c +++ b/statistics.c @@ -285,7 +285,7 @@ volume_t get_gas_used(struct dive *dive) pressure_t start, end; start = cyl->start.mbar ? cyl->start : cyl->sample_start; - end = cyl->end.mbar ?cyl->sample_end : cyl->sample_end; + end = cyl->end.mbar ? cyl->end : cyl->sample_end; if (start.mbar && end.mbar) gas_used.mliter += gas_volume(cyl, start) - gas_volume(cyl, end); }