mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-11-03 04:17:20 -05:00
Oddsock found this bug when working with icecast2 on freebsd. Nanoseconds
were off by a few orders of magnitude. svn path=/trunk/thread/; revision=2187
This commit is contained in:
parent
c0c636413f
commit
a3c3d6f277
@ -531,7 +531,7 @@ void thread_sleep(unsigned long len)
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user