diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-09 07:37:25 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-09 08:13:17 -0800 |
commit | 0089dd8819b7b28ad5c48dbfc881f4011f18014e (patch) | |
tree | f6e511bc42d7db27531f6ad33d185eae070f9273 /dive.h | |
parent | 2b26b6433f77cb4bf7523a90148a0087549e30e5 (diff) | |
download | subsurface-0089dd8819b7b28ad5c48dbfc881f4011f18014e.tar.gz |
Don't save cylinder start/end pressures unless set by hand
Keep the sample pressure start/end data separate from the overall
cylinder start/end data - and clean the overall cylinder start/end data
if it matches the samples exactly to avoid the redundancy.
This breaks all the SAC calculations etc, which expect the cylinder
pressures to always be in the cylinder data. I'll fix that up
separately.
The reason for this is that we really want to keep the manually entered
data separate: the pressure plotting doesn't need the confusion, and
considers end-point data (with interpolation) very different from sample
data. Also, we do not want to pollute the xml save-file with data that
is computed.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ typedef struct { typedef struct { cylinder_type_t type; struct gasmix gasmix; - pressure_t start, end; + pressure_t start, end, sample_start, sample_end; } cylinder_t; extern int get_pressure_units(unsigned int mb, const char **units); |