Commit 42fc5248 authored by Mark Andrews's avatar Mark Andrews
Browse files

allow maxoutstanding to be set from the command line

parent bb2b91d9
...@@ -1691,19 +1691,26 @@ main(int argc, char **argv) { ...@@ -1691,19 +1691,26 @@ main(int argc, char **argv) {
int fd; int fd;
int nfds = 0; int nfds = 0;
int done = 0; int done = 0;
char *end;
while ((n = getopt(argc, argv, "cdfos:")) != -1) { while ((n = getopt(argc, argv, "cdfom:s:")) != -1) {
switch (n) { switch (n) {
case 'c': what |= COMM; break; case 'c': what |= COMM; break;
case 'd': debug = 1; break; case 'd': debug = 1; break;
case 'f': what |= FULL; break; case 'f': what |= FULL; break;
case 'm': n = strtol(optarg, &end, 10);
if (*end == '0' && n > 10)
maxoutstanding = n;
break;
case 'o': inorder = 1; break; case 'o': inorder = 1; break;
case 's': addserver(optarg); break; case 's': addserver(optarg); break;
default: default:
printf("usage: genreport [-c|-d|-f|-o] [-s server]\n"); printf("usage: genreport [-c|-d|-f|-o] [-m maxoutstanding] "
"[-s server]\n");
printf("\t-c: add common queries\n"); printf("\t-c: add common queries\n");
printf("\t-d: enable debugging\n"); printf("\t-d: enable debugging\n");
printf("\t-f: add full mode tests\n"); printf("\t-f: add full mode tests\n");
printf("\t-m: set maxoutstanding\n");
printf("\t-o: inorder output\n"); printf("\t-o: inorder output\n");
printf("\t-s: use specified recursive server\n"); printf("\t-s: use specified recursive server\n");
exit(0); exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment