From: Stephen M. Cameron Date: Wed, 7 Mar 2012 18:34:19 +0000 (+0100) Subject: gfio: cap graph data count X-Git-Tag: gfio-0.1~228 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=fe8afddb903447278f37afc4e1adb226ca2cb699;p=fio.git gfio: cap graph data count Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- diff --git a/gfio.c b/gfio.c index 4d9d73da..47070349 100644 --- a/gfio.c +++ b/gfio.c @@ -146,6 +146,7 @@ static void setup_iops_graph(struct gui *ui) graph_set_color(ui->iops_graph, "Read IOPS", 0.13, 0.54, 0.13); graph_set_color(ui->iops_graph, "Write IOPS", 1.0, 0.0, 0.0); add_invisible_data(ui->iops_graph); + line_graph_set_data_count_limit(ui->iops_graph, 100); } static void setup_bandwidth_graph(struct gui *ui) @@ -161,6 +162,7 @@ static void setup_bandwidth_graph(struct gui *ui) graph_set_color(ui->bandwidth_graph, "Read Bandwidth", 0.13, 0.54, 0.13); graph_set_color(ui->bandwidth_graph, "Write Bandwidth", 1.0, 0.0, 0.0); add_invisible_data(ui->bandwidth_graph); + line_graph_set_data_count_limit(ui->bandwidth_graph, 100); } static void clear_ui_info(struct gui *ui)