From: Chris Mason Date: Mon, 27 Aug 2012 17:00:30 +0000 (-0400) Subject: iowatcher: Fix io line graphs at the edge of the X axis X-Git-Tag: blktrace-1.1.0~2^2~49 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f106953d41597722efd068e67eaae5664ef5034d;p=blktrace.git iowatcher: Fix io line graphs at the edge of the X axis Signed-off-by: Chris Mason --- diff --git a/iowatcher/plot.c b/iowatcher/plot.c index 536c638..d59c5c7 100644 --- a/iowatcher/plot.c +++ b/iowatcher/plot.c @@ -734,7 +734,7 @@ int svg_line_graph(struct plot *plot, struct graph_line_data *gld, char *color, } /* otherwise, we just print a bar up there to show this one data point */ - if (i == gld->stop_seconds) + if (i >= gld->stop_seconds - 2) len = -10; /*