From f106953d41597722efd068e67eaae5664ef5034d Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Mon, 27 Aug 2012 13:00:30 -0400 Subject: [PATCH] iowatcher: Fix io line graphs at the edge of the X axis Signed-off-by: Chris Mason --- iowatcher/plot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /* -- 2.25.1