From 609040037aabb49b7ac65562587c17d990f6b303 Mon Sep 17 00:00:00 2001 From: Huadong Liu Date: Thu, 21 Feb 2013 10:24:20 +0100 Subject: [PATCH] check output_format before calling show_idle_prof_stats() Do the proper checks for output format type and whether we are a server backend or not. Signed-off-by: Jens Axboe --- stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stat.c b/stat.c index 8835f7f9..c3d3c4ad 100644 --- a/stat.c +++ b/stat.c @@ -1322,10 +1322,10 @@ void show_run_stats(void) if (is_backend) fio_server_send_du(); - else if (output_format == FIO_OUTPUT_NORMAL) + else if (output_format == FIO_OUTPUT_NORMAL) { show_disk_util(0, NULL); - - show_idle_prof_stats(FIO_OUTPUT_NORMAL, NULL); + show_idle_prof_stats(FIO_OUTPUT_NORMAL, NULL); + } free(runstats); free(threadstats); -- 2.25.1