From d77a29543cf987e3cab6359bcd4f93459c30447e Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 13 May 2005 14:11:04 +0000 Subject: '' --- tests/reuse2.c | 8 ++++++-- 1 file 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; -- cgit v1.2.3