summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-10-03 15:54:09 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-03 09:41:40 -0700
commit34a747deada3b1321f779cd032cd50be91aa322d (patch)
tree88e52b4cef59a86df95e3e300bf959b827f2af1d
parentb79a8ec3866f16f95342ba4b344f5bcf5a33de6d (diff)
downloadsubsurface-34a747deada3b1321f779cd032cd50be91aa322d.tar.gz
Bugfix typo in get_gas_used
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--statistics.c2
1 files changed, 1 insertions, 1 deletions
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);
}