[xiph-cvs] cvs commit: thread thread.c
Jack Moffitt
jack at xiph.org
Fri Oct 19 20:39:11 PDT 2001
jack 01/10/19 20:39:10
Modified: . thread.c
Log:
Oddsock found this bug when working with icecast2 on freebsd. Nanoseconds
were off by a few orders of magnitude.
Revision Changes Path
1.2 +1 -1 thread/thread.c
Index: thread.c
===================================================================
RCS file: /usr/local/cvsroot/thread/thread.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- thread.c 2001/09/10 02:26:33 1.1
+++ thread.c 2001/10/20 03:39:10 1.2
@@ -531,7 +531,7 @@
int ret;
time_sleep.tv_sec = len / 1000000;
- time_sleep.tv_nsec = len % 1000000;
+ time_sleep.tv_nsec = (len % 1000000) * 1000;
ret = nanosleep(&time_sleep, &time_remaining);
while (ret != 0 && errno == EINTR) {
--- >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