summaryrefslogtreecommitdiff
path: root/tests/TSS_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TSS_Test.cpp')
-rw-r--r--tests/TSS_Test.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/TSS_Test.cpp b/tests/TSS_Test.cpp
index be4be43f1a7..c9a35869d11 100644
--- a/tests/TSS_Test.cpp
+++ b/tests/TSS_Test.cpp
@@ -38,10 +38,7 @@ static u_int errors = 0;
// of keys quickly in the first thread, set the number of
// ITERATIONS to be small as well.
static const int ITERATIONS =
- (ACE_DEFAULT_THREAD_KEYS - ACE_MAX_THREADS) / (2 * ACE_MAX_THREADS) < 2
- ? 1
- : (ACE_DEFAULT_THREAD_KEYS - ACE_MAX_THREADS) / (2 * ACE_MAX_THREADS);
-
+ ACE_DEFAULT_THREAD_KEYS/8 < 2 ? 1 : ACE_DEFAULT_THREAD_KEYS/8;
#elif defined (__Lynx__)
// LynxOS only has 16 native TSS keys, and most of those don't seem
// to be available.