summaryrefslogtreecommitdiffstats
path: root/dives
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 00:09:59 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 00:09:59 +0000
commit3e5cb7e2aa00a13542ac6d02af3ef8ab639112d7 (patch)
tree57392a7b3270df9e84a4c9b1c9117b73abca0507 /dives
parentee7dd4307a442148598299db1152461b6cbf8270 (diff)
downloadsubsurface-3e5cb7e2aa00a13542ac6d02af3ef8ab639112d7.tar.gz
Fix per_cylinder_mean_depth calculation for CCR
This patch is bigger than necessary because I also renamed the get_cylinder_use() function to the much more accurate get_cylinder_idx_by_use(). If we have no gas changes (except for a possible explicit first gas), (which in the CCR case also means no bailout), this code will give you correct per cylinder depth and duration for oxygen and diluent and therefore create more reasonable gas consumption data for CCR dives. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dives')
0 files changed, 0 insertions, 0 deletions