[PATCH] Bugfix typo in get_gas_used

Anton Lundin glance at acc.umu.se
Thu Oct 3 06:54:09 UTC 2013


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 statistics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/statistics.c b/statistics.c
index 1b6a709..83675cf 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);
 	}
-- 
1.8.1.2



More information about the subsurface mailing list