On Tue, Oct 17, 2017 at 3:01 PM, Robert Helling <[email protected]> wrote:
>
> So in struct plot_data I added a struct gasmix member

Please don't.

It's easily computable as you traverse the plot info:

            struct gasmix *gasmix = NULL;
            struct event *ev = NULL;

            loop over samples or plot events in increasing time order: {
                    ...
                    gasmix = get_gasmix(dive, dc, time, &ev, gasmix);
                    ...
            }

and our plot info is already unnecessarily big. Let's not add another
redundant element to it.

               Linus
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to