Fix up multi-cylinder code as per Dirk

Too much cut-and-paste, as Dirk points out.  With multiple cylinders,
we're not necessarily going to start at time zero.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-10-20 13:55:55 +03:00
parent 04f372f8aa
commit 45d4d5ecde

View file

@ -508,7 +508,7 @@ static void plot_cylinder_pressure(struct graphics_context *gc, struct plot_info
if (entry->same_cylinder) if (entry->same_cylinder)
line_to(gc, entry->sec, mbar); line_to(gc, entry->sec, mbar);
else else
move_to(gc, 0, pi->maxpressure); move_to(gc, entry->sec, mbar);
} }
/* if we have valid samples, we don't want to draw a line to the minpressure /* if we have valid samples, we don't want to draw a line to the minpressure
* but just end wherever the dive ended (think valve shutdowns during dive) * but just end wherever the dive ended (think valve shutdowns during dive)