From 5bdf863a907ac9b85cb0d9c40a679da88fe4047d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 30 Jan 2002 16:46:15 -0500 Subject: [svn-r4885] Purpose: Bug Fix Description: Throughput wasn't being calculated correctly. Solution: We were using a value other than the actual time. Changed so that we're using the correct structure to grab the time out of it. Platforms tested: Linux(pp) --- perform/pio_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perform/pio_perf.c b/perform/pio_perf.c index e32f675..6da8aae 100644 --- a/perform/pio_perf.c +++ b/perform/pio_perf.c @@ -587,7 +587,7 @@ output_all_info(FILE *output, minmax *mm, int count, int indent_level) for (i = 0; i < count; ++i) { print_indent(output, indent_level); - output_report(output, "Iteration %d:\n", i); + output_report(output, "Iteration %d:\n", i + 1); print_indent(output, indent_level + 1); output_report(output, "Minimum Time: %.2fs\n", mm[i].min); print_indent(output, indent_level + 1); @@ -634,7 +634,7 @@ accumulate_minmax_stuff(minmax *mm, long raw_size, int count) total_mm.num = count; for (i = 1; i < count; ++i) { - double m = MB_PER_SEC(raw_size, total_mm.max); + double m = MB_PER_SEC(raw_size, mm[i].max); total_mm.sum += m; -- cgit v0.12