diff options
author | simonmar <unknown> | 2003-09-03 10:49:19 +0000 |
---|---|---|
committer | simonmar <unknown> | 2003-09-03 10:49:19 +0000 |
commit | c4723c7fd5dba00975046f225ae74f6462b485b6 (patch) | |
tree | d0d553e4e63fa17e84102ba5952384d129e6ea2f | |
parent | 03bef664f96be784f01b8e9d0300ae0098bb4394 (diff) | |
download | haskell-c4723c7fd5dba00975046f225ae74f6462b485b6.tar.gz |
[project @ 2003-09-03 10:49:19 by simonmar]
inputReady(): the time calculation for select() was wrong, forgetting
to multiply the milliseconds value by 1000 to get microseconds.
-rw-r--r-- | libraries/base/cbits/inputReady.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/cbits/inputReady.c b/libraries/base/cbits/inputReady.c index 8677f26c3e..30e140b89c 100644 --- a/libraries/base/cbits/inputReady.c +++ b/libraries/base/cbits/inputReady.c @@ -34,7 +34,7 @@ inputReady(int fd, int msecs, int isSock) */ maxfd = fd + 1; tv.tv_sec = msecs / 1000; - tv.tv_usec = msecs % 1000; + tv.tv_usec = (msecs % 1000) * 1000; while ((ready = select(maxfd, &rfd, NULL, NULL, &tv)) < 0 ) { if (errno != EINTR ) { |