From 45d4d5ecdec6d02b2564d512cd95118f474855e8 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 20 Oct 2011 13:55:55 +0300 Subject: [PATCH] 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 --- profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.c b/profile.c index 1069253..e5c7238 100644 --- a/profile.c +++ b/profile.c @@ -508,7 +508,7 @@ static void plot_cylinder_pressure(struct graphics_context *gc, struct plot_info if (entry->same_cylinder) line_to(gc, entry->sec, mbar); 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 * but just end wherever the dive ended (think valve shutdowns during dive) -- 2.45.2