X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=ftsbench.git;a=blobdiff_plain;f=ftsbench.c;fp=ftsbench.c;h=917c090fe5df903b38f771e2bd6e2c744a523132;hp=86d9b14daca851df87ccb8f33b9b442b75ff8f9e;hb=04bb53c0bccbe6936503cb32b4c80024a90f19c1;hpb=18b8e016bce54cca0bc8efb4f4252bd0b049605d diff --git a/ftsbench.c b/ftsbench.c index 86d9b14..917c090 100644 --- a/ftsbench.c +++ b/ftsbench.c @@ -289,7 +289,7 @@ main(int argn, char *argv[]) { pthread_t *tid = (pthread_t*)malloc( sizeof(pthread_t) * nclients); struct timeval begin; double elapsed; - int total=0; + int total=0, nres=0; struct timespec sleepTo = { 0, 0 }; /* @@ -352,11 +352,13 @@ main(int argn, char *argv[]) { for(i=0;inres; dbs[i]->Close(dbs[i]); } printf("%s%d(%.02f%%) queries proceed\n", (quiet) ? "" : "\r", total, (100.0*(float)total)/(nclients * n)); + printf("Total number of result: %d\n", nres); printf("Total time: %.02f sec, Queries per second: %.02f\n", elapsed, total/elapsed); fflush(stdout); }