From: Huadong Liu Date: Thu, 21 Feb 2013 09:24:20 +0000 (+0100) Subject: check output_format before calling show_idle_prof_stats() X-Git-Tag: fio-2.0.14~9 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=427899c4c9a09e245f0dd1210e824cfcea8212f8;hp=ab3379bcb7748675fd6ef7dac0457f1304516a66 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 --- diff --git a/stat.c b/stat.c index 759bcef9..fe09a296 100644 --- a/stat.c +++ b/stat.c @@ -1358,10 +1358,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);