Fix reversal of IOPS and BW graphs
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Mar 2012 07:15:46 +0000 (08:15 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Mar 2012 07:15:46 +0000 (08:15 +0100)
Commit 8dfd6071 inadvertently mixed them up, restore original
behaviour.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
gfio.c

diff --git a/gfio.c b/gfio.c
index 8fd57393b34a0249c4f32eefe5298be66bda85b8..b91ef064b2281256ddc0141f4d5aec3d51b1108a 100644 (file)
--- 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)