summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-13 14:10:48 +0000
committerrpj <rpj>2005-05-13 14:10:48 +0000
commit8c349ac54c076e64ac8017927974968f2608fcb1 (patch)
treeadd622dad11fe5034261d04a2cf88adfc83f1ac0 /tests
parent4d142211e3aa40f6714441359a937aec52657606 (diff)
''
Diffstat (limited to 'tests')
-rw-r--r--tests/reuse2.c8
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;