Re: {sys_,/dev/}epoll waiting timeout

Davide Libenzi (davidel@xmailserver.org)
Fri, 24 Jan 2003 17:08:28 -0800 (PST)


On Thu, 23 Jan 2003, Jamie Lokier wrote:

> (Davide), IMHO epoll should decide whether it means "at minimum" (in
> which case the +1 is a requirement), or it means "at maximum" (in
> which case rounding up is wrong).
>
> The current method of rounding up and then effectively down means that
> you get an unpredictable mixture of both.

I think I'll go with :

Tj = (Tms * HZ + 999) / 1000

Somehow I feel it more correct :)

- Davide

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/