From 75450781fef7fd1d48742dc3a791f0f1119c675c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 23 Mar 2012 08:15:46 +0100 Subject: [PATCH] Fix reversal of IOPS and BW graphs Commit 8dfd6071 inadvertently mixed them up, restore original behaviour. Signed-off-by: Jens Axboe --- gfio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfio.c b/gfio.c index 8fd57393..b91ef064 100644 --- a/gfio.c +++ b/gfio.c @@ -89,7 +89,7 @@ static void setup_iops_graph(struct gfio_graphs *gg) line_graph_set_data_count_limit(g, gfio_graph_limit); graph_add_extra_space(g, 0.0, 0.0, 0.0, 0.0); graph_set_graph_all_zeroes(g, 0); - gg->bandwidth_graph = g; + gg->iops_graph = g; } static void setup_bandwidth_graph(struct gfio_graphs *gg) @@ -107,7 +107,7 @@ static void setup_bandwidth_graph(struct gfio_graphs *gg) line_graph_set_data_count_limit(g, 100); graph_add_extra_space(g, 0.0, 0.0, 0.0, 0.0); graph_set_graph_all_zeroes(g, 0); - gg->iops_graph = g; + gg->bandwidth_graph = g; } static void setup_graphs(struct gfio_graphs *g) -- 2.25.1