summaryrefslogtreecommitdiff
path: root/graph.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-04-13 14:23:17 +0200
committerJens Axboe <axboe@kernel.dk>2012-04-13 14:23:17 +0200
commit10987b9dfa87c68400c3883216a6ce6b20f56471 (patch)
tree6888729bfbed300d86afe5f3b4a53cc5d9ca8932 /graph.c
parent32d4cc615b518ad4e1ed24e0a2a34020679cea30 (diff)
downloadfio-10987b9dfa87c68400c3883216a6ce6b20f56471.tar.gz
fio-10987b9dfa87c68400c3883216a6ce6b20f56471.tar.bz2
graph: use rounded graph connections
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'graph.c')
-rw-r--r--graph.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/graph.c b/graph.c
index 06cfb1ac..7a35736b 100644
--- a/graph.c
+++ b/graph.c
@@ -586,6 +586,8 @@ void line_graph_draw(struct graph *g, cairo_t *cr)
goto skip_data;
cairo_set_line_width(cr, 1.5);
+ cairo_set_line_join(cr, CAIRO_LINE_JOIN_ROUND);
+
flist_for_each(lentry, &g->label_list) {
i = flist_entry(lentry, struct graph_label, list);
first = 1;
@@ -600,9 +602,8 @@ void line_graph_draw(struct graph *g, cairo_t *cr)
if (first) {
cairo_move_to(cr, tx, ty);
first = 0;
- } else {
+ } else
cairo_line_to(cr, tx, ty);
- }
}
cairo_stroke(cr);
}