if (timeout > 0) {
timeval_t tv;
tv.tv_sec = timeout / 1000;
tv.tv_usec = timeout % 1000;
time_limit = currentTime();
timerAdd(&time_limit, (timeval_t *) &tv);
}
The above piece of code from iomgr.c sets tv.tv_usec incorrectly. timeout is in
milliseconds, but tv.tv_usec needs to be in microseconds.
DREL 3/28/96
timeval_t tv;
tv.tv_sec = timeout / 1000;
tv.tv_usec = timeout % 1000;
time_limit = currentTime();
timerAdd(&time_limit, (timeval_t *) &tv);
}
The above piece of code from iomgr.c sets tv.tv_usec incorrectly. timeout is in
milliseconds, but tv.tv_usec needs to be in microseconds.
DREL 3/28/96