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

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