1
0
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:
Jack Moffitt 2001-10-20 03:39:10 +00:00
parent c0c636413f
commit a3c3d6f277

View File

@ -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) {