summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-06-06 21:45:59 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-06-06 21:45:59 (GMT)
commit4e4ab0d320597f3aa9a45170d92e8d578cc203db (patch)
treefbb37c8e49bb48daa893c31f165886364db6a7f9 /perform
parent952b611aa6d9160e1a59338ae1fea6986939a1a4 (diff)
downloadhdf5-4e4ab0d320597f3aa9a45170d92e8d578cc203db.zip
hdf5-4e4ab0d320597f3aa9a45170d92e8d578cc203db.tar.gz
hdf5-4e4ab0d320597f3aa9a45170d92e8d578cc203db.tar.bz2
[svn-r6989]
Purpose: Added sanity check that min number of processes be not greater than max number of processes. Platforms tested: copper only since this is a very simple change. Misc. update:
Diffstat (limited to 'perform')
-rw-r--r--perform/pio_perf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c
index f3eef36..a47e6ee 100644
--- a/perform/pio_perf.c
+++ b/perform/pio_perf.c
@@ -1304,6 +1304,8 @@ parse_command_line(int argc, char *argv[])
cl_opts->max_xfer_size = cl_opts->num_bpp;
if (cl_opts->min_xfer_size > cl_opts->max_xfer_size)
cl_opts->min_xfer_size = cl_opts->max_xfer_size;
+ if (cl_opts->min_num_procs > cl_opts->max_num_procs)
+ cl_opts->min_num_procs = cl_opts->max_num_procs;
return cl_opts;
}