Microseconds in hWaitForInput

Nils Anders Danielsson nad at cs.chalmers.se
Fri Aug 15 07:55:17 EDT 2003


>From libraries/base/cbits/inputReady.c:

        tv.tv_sec  = msecs / 1000;
        tv.tv_usec = msecs % 1000;

This should be (msecs % 1000) * 1000, right? usec stands for microseconds.
See http://www.haskell.org/onlinereport/io.html#sect21.9.1.

/NAD



More information about the Glasgow-haskell-bugs mailing list