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
commitf106953d41597722efd068e67eaae5664ef5034d (patch)
tree36c78ef4c060944ca8c8741e698c839c23ba9739
parent49d17e16fc977e01baf018f7c4af20e6b594fbba (diff)
downloadblktrace-f106953d41597722efd068e67eaae5664ef5034d.tar.gz
iowatcher: Fix io line graphs at the edge of the X axis
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--iowatcher/plot.c2
1 files changed, 1 insertions, 1 deletions
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;
/*