joyent/libuv — pull request #450 by shigeki (2012-06-07 04:20:46+00:00)
Title: linux: fix uv_hrtime() to return a right value

I struggled and annoyed against the timeout errors of the recent Node in master for these days and finally got it to be solved.
This tiny bug caused the stall of epoll_wait() in my 32bit Linux because it sometimes but not always generated an invalid timeout value.
I separated this PR into two commits, one is the fix and the other is the test because it needs many iterations and takes some time to have the hr_time() error. If it need not to merge the revised test, please take only fix.