diff options
Diffstat (limited to 'pr/src/md/unix/uxpoll.c')
-rw-r--r-- | pr/src/md/unix/uxpoll.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pr/src/md/unix/uxpoll.c b/pr/src/md/unix/uxpoll.c index a95e4558..c3275acf 100644 --- a/pr/src/md/unix/uxpoll.c +++ b/pr/src/md/unix/uxpoll.c @@ -402,8 +402,7 @@ retry: { PRInt32 ticksPerSecond = PR_TicksPerSecond(); tv.tv_sec = remaining / ticksPerSecond; - tv.tv_usec = remaining - (ticksPerSecond * tv.tv_sec); - tv.tv_usec = (PR_USEC_PER_SEC * tv.tv_usec) / ticksPerSecond; + tv.tv_usec = PR_IntervalToMicroseconds( remaining % ticksPerSecond ); tvp = &tv; } |