[PATCH 1/3] Save cylinder pressure from samples

Linus Torvalds torvalds at linux-foundation.org
Sat Nov 15 09:19:28 PST 2014


On Nov 15, 2014 2:20 AM, "Miika Turkia" <miika.turkia at gmail.com> wrote:
>
> If start and end cylinder pressure is not explicitly set for secondary
> cylinders, we must store the start and end pressures from the
> sample_{start,end} attribute. Faulty behavior is obvious at least when
> importing Poseidon logs.

This is not how is supposed to work.

If we have cylinder sample data, we don't save start/end pressures per
cylinder, we get them from the samples.

The saved cylinder pressures are supposed to happen only if the user did
some manual overriding (maybe there is sample data, but it was incomplete
and the transmitter flaked out in the middle of the dive), or if there is
no sample data and the user entered it manually.

Generally the save format tries to avoid saving redundant data very much on
purpose.

    Linus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141115/82a2dde4/attachment.html>


More information about the subsurface mailing list