Commit 67a7d43f authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Fix wrong operator in testfifo

parent cebda6c3
...@@ -204,9 +204,12 @@ int main(int argc, char *argv[]) ...@@ -204,9 +204,12 @@ int main(int argc, char *argv[])
int count; int count;
int i; int i;
int nbr_threads; int nbr_threads;
#ifdef _POSIX_THREAD_THREADS_MAX
nbr_threads = _POSIX_THREAD_THREADS_MAX;
#else /* _POSIX_THREAD_THREADS_MAX */
nbr_threads = sysconf(_SC_THREAD_THREADS_MAX); nbr_threads = sysconf(_SC_THREAD_THREADS_MAX);
if ((nbr_threads <= 0) || (nbr_threads > NBR_THREADS / 2)) { #endif /* _POSIX_THREAD_THREADS_MAX */
if ((nbr_threads <= 0) || (nbr_threads > NBR_THREADS * 2)) {
nbr_threads = NBR_THREADS; nbr_threads = NBR_THREADS;
} else { } else {
/* The local limit is bellow NBR_THREADS */ /* The local limit is bellow NBR_THREADS */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment