summaryrefslogtreecommitdiffstats
path: root/linux.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-01-06 16:09:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-06 22:16:43 -0800
commit98ed131bdaee6074a2f65d0643e7137e7e5692df (patch)
tree800f74235fbec3942bf11f1e311d728aa07498de /linux.c
parentbe9be189f7350cfb92899680907735719566631e (diff)
downloadsubsurface-98ed131bdaee6074a2f65d0643e7137e7e5692df.tar.gz
Split up and re-organize the plot entry calculations
This splits up the (very complex) function that calculates all the plot info data, so that the gas pressure logic is in several helper functions, and the deco and partial pressure calculations are in a function of their own. That makes the code almost readable. This also changes the cylinder pressure calculations so that if you have manually set the beginning and end pressures, those are the ones we will show (by making them fake "sensor pressures"). We used to shopw some random pressure that was related to the manually entered ones only distantly (through various rounding phases and the SAC-rate calculations). That does make the rounding errors more obvious in the graph, but we can fix that separately. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'linux.c')
0 files changed, 0 insertions, 0 deletions