[mythtv-commits] Ticket #4971: HouseKeeper::wantToRun() randomization incorrect for maxhour < hour

MythTV mythtv at cvs.mythtv.org
Sun Mar 16 08:24:00 UTC 2008


#4971: HouseKeeper::wantToRun() randomization incorrect for maxhour < hour
-------------------------------------+--------------------------------------
 Reporter:  stefan.becker at nokia.com  |       Owner:  ijr       
     Type:  defect                   |      Status:  new       
 Priority:  minor                    |   Milestone:  unknown   
Component:  mythtv                   |     Version:  0.21-fixes
 Severity:  low                      |     Mlocked:  0         
-------------------------------------+--------------------------------------
 For the case

     minhour > maxhour  (i.e. window includes midnight)
     hour    > maxhour  (i.e. before midnight)

 the first term of the formula in HouseKeeper::wantToRun()

     (maxhour-hour)*12+(60-minute)/5...

 turns negative. That negative value is then used for a modulo division...

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4971>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list