iowatcher: Fix io line graphs at the edge of the X axis
authorChris Mason <chris.mason@fusionio.com>
Mon, 27 Aug 2012 17:00:30 +0000 (13:00 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 27 Aug 2012 17:00:30 +0000 (13:00 -0400)
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
iowatcher/plot.c

index 536c638d94c3ca6f950ebe0a59f1766cc6239c35..d59c5c75c8795621c1f238bf5f180f1c0a828e30 100644 (file)
@@ -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;
 
                        /*