aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2012-08-27 13:00:30 -0400
committerChris Mason <chris.mason@oracle.com>2012-08-27 13:00:30 -0400
commit48bf4ae8b63f91462147254139433a4e1591eae5 (patch)
treed586296fc07178e31a9453d2bd268e23c6fa611f
parente539bf58f0e097b38dad2f648c535397ebc237ae (diff)
downloadiowatcher-48bf4ae8b63f91462147254139433a4e1591eae5.tar.gz
Fix io line graphs at the edge of the X axis
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--plot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plot.c b/plot.c
index 536c638..d59c5c7 100644
--- a/plot.c
+++ b/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;
/*