[mythtv] Re: [mythtv-commits] mythtv commit: r7209 by danielk
Stuart Auchterlonie
stuarta at squashedfrog.net
Thu Sep 8 16:38:41 UTC 2005
On Thu, Sep 08, 2005 at 12:27:06PM -0400, Daniel Kristjansson wrote:
> On Thu, 2005-09-08 at 17:22 +0100, Stuart Auchterlonie wrote:
> > Looks like there is a small problem with the way you have
> > set the timeout for the select loop.
> > struct timeval select_timeout = { 0, (timeout_ms) % 1000 };
>
> You're right of course :) I've fixed it in svn.
>
Still not correct in 7211.
You should stick with passing in 5000ms and do
struct timeval select_timeout = { timeout_ms / 1000,
(timeout_ms % 1000) * 1000
That way 5000ms = 5s + 0usec, 500ms = 0s+500000usec
Stuart
More information about the mythtv-dev
mailing list