diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-25 10:45:20 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-28 06:53:12 +0900 |
commit | b6b514ea862051bfb8b389047a5d996da81155f6 (patch) | |
tree | e55cf6ce09ccadb6b9756728788bbf43b71c182a /subsurface-helper.cpp | |
parent | 2d353a756be2a8469c4a8596303b334ad85beae8 (diff) | |
download | subsurface-b6b514ea862051bfb8b389047a5d996da81155f6.tar.gz |
planner: correct rating calculations.
Test show that the ratings calculations were off by +/- 1, due
to rounding errors. Found due to test cases in tests (other commits)
The calculations are copied 1-1 from diveplanner.cpp, but are
used slightly different in plannerShared.cpp
Correct calculations, by securing the calculation is done
with float precision and the rounded with lrint().
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'subsurface-helper.cpp')
0 files changed, 0 insertions, 0 deletions