apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r661097 - /apr/apr-util/trunk/test/testreslist.c
Date Wed, 28 May 2008 21:37:39 GMT
Author: rpluem
Date: Wed May 28 14:37:38 2008
New Revision: 661097

URL: http://svn.apache.org/viewvc?rev=661097&view=rev
Log:
* Fix definition of PERCENT95th to be really MAX_UINT * .95 aka. 2**32 * .95.

Found by: chrisd

Modified:
    apr/apr-util/trunk/test/testreslist.c

Modified: apr/apr-util/trunk/test/testreslist.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/test/testreslist.c?rev=661097&r1=661096&r2=661097&view=diff
==============================================================================
--- apr/apr-util/trunk/test/testreslist.c (original)
+++ apr/apr-util/trunk/test/testreslist.c Wed May 28 14:37:38 2008
@@ -98,7 +98,8 @@
     apr_interval_time_t work_delay_sleep;
 } my_thread_info_t;
 
-#define PERCENT95th ( ( 2u^30 / 5u ) * 19u )
+/* MAX_UINT * .95 = 2**32 * .95 = 4080218931u */
+#define PERCENT95th 4080218931u
 
 static void * APR_THREAD_FUNC resource_consuming_thread(apr_thread_t *thd,
                                                         void *data)



Mime
View raw message