[xiph-cvs] cvs commit: thread thread.c

Michael Smith msmith at xiph.org
Mon Aug 12 18:08:16 PDT 2002



msmith      02/08/12 21:08:15

  Modified:    src      util.c
               .        thread.c
  Log:
  Timing fixes

Revision  Changes    Path
1.10      +1 -1      icecast/src/util.c

Index: util.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/util.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- util.c	12 Aug 2002 14:48:31 -0000	1.9
+++ util.c	13 Aug 2002 01:08:15 -0000	1.10
@@ -60,7 +60,7 @@
     FD_SET(fd, &rfds);
 
     tv.tv_sec = timeout/1000;
-    tv.tv_usec = (timeout - tv.tv_sec)*1000;
+    tv.tv_usec = (timeout % 1000)*1000;
 
     return select(fd+1, &rfds, NULL, NULL, &tv);
 #endif

<p><p>1.14      +1 -1      thread/thread.c

Index: thread.c
===================================================================
RCS file: /usr/local/cvsroot/thread/thread.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- thread.c	10 Aug 2002 03:22:44 -0000	1.13
+++ thread.c	13 Aug 2002 01:08:15 -0000	1.14
@@ -568,7 +568,7 @@
         struct timeval tv;
 
         tv.tv_sec = len / 1000000;
-	tv.tv_usec = (len % 1000000) / 1000;
+	tv.tv_usec = (len % 1000000);
 
         select(0, NULL, NULL, NULL, &tv);
 # endif

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list