David Engel wrote: ...
Now, that all being said, I think the SchedMoveHigher behavior can be extended to automatically apply to programs of equal priority without violating the above goals. The attached patch attempts to do this for anyone who wants to test it.
I also sent out a patch for testing off-line but of course David's code is a little cleaner while doing the same thing the same way =). For those who are curious but don't want to compile and set up a test case, here is the result with this patch.
All with SMH off.
Patched with NCIS lower than Nova:
Nova - "Saving the National Treasur 10 1010 15 20:00-21:00 1 1 1 C 1 2 NCIS - "Witness" 8 1008 15 20:00-21:00 1 0 0 A C 1 Nova - "Saving the National Treasur 10 1010 16 01:00-02:00 1 0 0 C E 2
Patched with NCIS and Nova equal:
Nova - "Saving the National Treasur 10 1010 15 20:00-21:00 1 0 0 C L 2 NCIS - "Witness" 8 1008 15 20:00-21:00 1 1 1 A 1 2 Nova - "Saving the National Treasur 10 1010 16 01:00-02:00 1 1 1 C 1 2
Unpatched with NCIS and Nova equal:
Nova - "Saving the National Treasur 10 1010 15 20:00-21:00 1 1 1 C 1 2 NCIS - "Witness" 8 1008 15 20:00-21:00 1 0 0 A C 2 Nova - "Saving the National Treasur 10 1010 16 01:00-02:00 1 0 0 C E 2
In the first case, Nova has the higher priority and is not moved
(if SMH was turned on it would move). In the second case, Nova is
a kChannelRecord whereas NCIS is a kAllRecord making Nova the clear
winner. However, since the recpriority value is the same, it is
willing to move Nova.
-- bjm _______________________________________________ mythtv-dev mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
