diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-06 16:09:48 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-06 22:16:43 -0800 |
commit | 98ed131bdaee6074a2f65d0643e7137e7e5692df (patch) | |
tree | 800f74235fbec3942bf11f1e311d728aa07498de /linux.c | |
parent | be9be189f7350cfb92899680907735719566631e (diff) | |
download | subsurface-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