diff options
| author | rpj <rpj> | 2005-05-13 14:10:48 +0000 | 
|---|---|---|
| committer | rpj <rpj> | 2005-05-13 14:10:48 +0000 | 
| commit | 8c349ac54c076e64ac8017927974968f2608fcb1 (patch) | |
| tree | add622dad11fe5034261d04a2cf88adfc83f1ac0 /tests | |
| parent | 4d142211e3aa40f6714441359a937aec52657606 (diff) | |
''
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/reuse2.c | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/tests/reuse2.c b/tests/reuse2.c index ded81b2..9851dde 100644 --- a/tests/reuse2.c +++ b/tests/reuse2.c @@ -153,10 +153,14 @@ main()      if (t[i].p != NULL)        totalHandles++; +  /* +   * pthread_t reuse counts start at 0, so we need to add 1 +   * to the max and min values derived above. +   */    printf("For %d total threads:\n", NUMTHREADS);    printf("Non-unique IDs = %d\n", notUnique); -  printf("Reuse maximum  = %d\n", reuseMax); -  printf("Reuse minimum  = %d\n", reuseMin); +  printf("Reuse maximum  = %d\n", reuseMax + 1); +  printf("Reuse minimum  = %d\n", reuseMin + 1);    printf("Total handles  = %d\n", totalHandles);    return 0; | 
