Separate prefix in legend with space
authorJan Kara <jack@suse.cz>
Thu, 5 May 2016 15:17:11 +0000 (17:17 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 5 May 2016 15:20:18 +0000 (09:20 -0600)
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>
iowatcher/main.c

index 2d0349c083b70debf94d24aa8adc6e6d53dda9a1..3eb8d3c0d2e1f25a06cab5bbfce9f02af4e41237 100644 (file)
@@ -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);
                }
        }