X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=tools%2Freadtest.c;h=9a431fd2fbdd5b284495670bbaf4beefb123a619;hb=bb2032795941dbb0bf8e8f33a4acc2e075e0104f;hp=aa98b76f3872df827f5efb4e8d63daeda7d5d1df;hpb=ced4378d0914bcfb926267772c45d1d23f3bed38;p=ardour.git diff --git a/tools/readtest.c b/tools/readtest.c index aa98b76f38..9a431fd2fb 100644 --- a/tools/readtest.c +++ b/tools/readtest.c @@ -61,7 +61,7 @@ main (int argc, char* argv[]) int n = 0; int nfiles = 0; int quiet = 0; - + while (1) { if ((c = getopt_long (argc, argv, optstring, longopts, &option_index)) == -1) { break; @@ -97,7 +97,7 @@ main (int argc, char* argv[]) return 0; } } - + if (optind < argc) { name_template = argv[optind]; } else { @@ -129,7 +129,7 @@ main (int argc, char* argv[]) if (!quiet) { printf ("# Discovered %d files using %s\n", n, name_template); } - + nfiles = n; files = (int *) malloc (sizeof (int) * nfiles); #ifdef HAVE_MMAP @@ -233,7 +233,7 @@ main (int argc, char* argv[]) if (!quiet) { printf ("# BW @ %lu %.3f seconds bandwidth %.4f MB/sec\n", (long unsigned int)_read, elapsed/1000000.0, bandwidth); } - + total_time += elapsed; ++cnt;