summaryrefslogtreecommitdiff
path: root/devel/upnp104/files/patch-threadutil::src::ThreadPool.c
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-04-05 16:17:07 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-04-05 16:17:07 +0000
commit70050f0ac5d1ef3a1388c6e2b7434809a15d13bf (patch)
tree5165dfc6613d24de44374e6e22e6eca68e7f243c /devel/upnp104/files/patch-threadutil::src::ThreadPool.c
parentmodify tools.c and set default locale to zh_CN.EUC (diff)
update to upnp 1.2.1
Noticed by: Steve Drew <sdrew@shaw.ca>
Notes
Notes: svn path=/head/; revision=78305
Diffstat (limited to 'devel/upnp104/files/patch-threadutil::src::ThreadPool.c')
-rw-r--r--devel/upnp104/files/patch-threadutil::src::ThreadPool.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/upnp104/files/patch-threadutil::src::ThreadPool.c b/devel/upnp104/files/patch-threadutil::src::ThreadPool.c
new file mode 100644
index 000000000000..12be8d316ed1
--- /dev/null
+++ b/devel/upnp104/files/patch-threadutil::src::ThreadPool.c
@@ -0,0 +1,20 @@
+--- threadutil/src/ThreadPool.c.orig Sat Apr 5 23:20:04 2003
++++ threadutil/src/ThreadPool.c Sat Apr 5 23:20:47 2003
+@@ -341,7 +341,7 @@
+ struct timeb t;
+
+ ftime( &t );
+- srand( ( unsigned int )t.millitm + ithread_get_current_thread_id( ) );
++ srand( ( unsigned int )t.millitm + ( unsigned int )ithread_get_current_thread_id( ) );
+ }
+
+ /****************************************************************************
+@@ -1455,7 +1455,7 @@
+ assert( stats != NULL ); if( stats == NULL ) {
+ return;}
+
+- printf( "ThreadPoolStats at Time: %ld\n", time( NULL ) );
++ printf( "ThreadPoolStats at Time: %lf\n", time( NULL ) );
+ printf
+ ( "Average Wait in High Priority Q in milliseconds: %lf\n",
+ stats->avgWaitHQ );