aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-05-05 17:17:11 +0200
committerJens Axboe <axboe@fb.com>2016-05-05 09:20:18 -0600
commit765676b7ddd4cb20a7b0038cd051d44c3bb87f22 (patch)
tree0246e67023c96b42f191220a4593ad6c044bb06f
parent8a544092665186e483d55c57adc66d033dbb3bd3 (diff)
downloadblktrace-765676b7ddd4cb20a7b0038cd051d44c3bb87f22.tar.gz
Separate prefix in legend with space
Trace label isn't properly separated with space from suffix (Read / Write). Fix it. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--iowatcher/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iowatcher/main.c b/iowatcher/main.c
index 2d0349c..3eb8d3c 100644
--- a/iowatcher/main.c
+++ b/iowatcher/main.c
@@ -815,12 +815,12 @@ static void plot_tput(struct plot *plot, unsigned int min_seconds,
if (tf->tput_writes_gld->max > 0) {
svg_line_graph(plot, tf->tput_writes_gld, tf->writes_color, 0, 0);
if (with_legend)
- svg_add_legend(plot, tf->label, "Writes", tf->writes_color);
+ svg_add_legend(plot, tf->label, " Writes", tf->writes_color);
}
if (tf->tput_reads_gld->max > 0) {
svg_line_graph(plot, tf->tput_reads_gld, tf->reads_color, 0, 0);
if (with_legend)
- svg_add_legend(plot, tf->label, "Reads", tf->reads_color);
+ svg_add_legend(plot, tf->label, " Reads", tf->reads_color);
}
}