aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qt59/travisbuild.sh
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-07-16 21:11:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-07-23 11:30:17 -0700
commit63e1516579977e68a8cd18c7845682d4655b9677 (patch)
tree7248b06e7dae4960a78ff0116819d86bfdffce8e /scripts/qt59/travisbuild.sh
parentb18b3119b54083c762f891c1ab98d10f20211482 (diff)
downloadsubsurface-63e1516579977e68a8cd18c7845682d4655b9677.tar.gz
core: recalculate CNS values on merge
When merging two dives, the higher CNS value was taken. This could result in inconsistent CNS values if two dives were merged where one dive's CNS was calculated from a "fake profile", i.e. a dive without dive-computer profile. In that case, the most conservative value (all time spent at the bottom) was assumed. The merged dive then consisted of the dive-computer profile and the conservative CNS estimate. This is fixed by setting the CNS value to "0" after merging, which means "unknown". The correct value will then be recalculated in "fixup_dive" from the actual sample data. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'scripts/qt59/travisbuild.sh')
0 files changed, 0 insertions, 0 deletions