summaryrefslogtreecommitdiffstats
path: root/perform/pio_perf.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-01-30 21:46:15 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-01-30 21:46:15 (GMT)
commit5bdf863a907ac9b85cb0d9c40a679da88fe4047d (patch)
tree437fb3519c613501db5b5ea330f50ba65589a89d /perform/pio_perf.c
parente2e0424f2f3bdd9204145d799ddce39e762795f7 (diff)
downloadhdf5-5bdf863a907ac9b85cb0d9c40a679da88fe4047d.zip
hdf5-5bdf863a907ac9b85cb0d9c40a679da88fe4047d.tar.gz
hdf5-5bdf863a907ac9b85cb0d9c40a679da88fe4047d.tar.bz2
[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)
Diffstat (limited to 'perform/pio_perf.c')
-rw-r--r--perform/pio_perf.c4
1 files 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;