[mythtv] Backend crashes... usually after completing commercial flagging

Chris Pinkham cpinkham at bc2va.org
Wed Mar 28 02:39:17 UTC 2007


* On Fri Mar 23, 2007 at 08:19:32AM -0800, Jim Westfall wrote:
> The code at housekeeper.cpp:92

> Its resulting in (random()%0) which is causing the SIGFPE.
> 
> Try changing it to
> 
>    if ((hour == maxhour && minute > 30) ||
>       ((random()%(((maxhour-hour)*12+(60-minute)/5 - 6) + 1) == 0)))

I went ahead and committed this fix after testing it since it has
been a few days since this was posted.

--
Chris


More information about the mythtv-dev mailing list