mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -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
9d87eecd0f
commit
1656225439
@ -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