[mythtv] [mythtv-commits] Ticket #10279: spamming logs with shutdown messages

George Nassas gnassas at mac.com
Fri Jul 6 16:53:32 UTC 2012


On 2012-07-06, at 6:00 AM, Malcolm Parsons wrote:

> Mythwelcome receiving large numbers of SHUTDOWN_COUNTDOWN events is
> the cause of Ticket #10629.


I took a quick look and it's obvious what's going on - the test for a countdown event is on line 2809 of scheduler.cpp and it merely checks that the seconds since idle is divisible by 10. If the surrounding method, Scheduler::HandleIdleShutdown, gets called more than once per second and it aligns with that magic 10 interval you'll see multiple events/logs. 264 in the OP's description and that matches my experience.

It's easy enough to add an extra condition to line 2809 but it's not clear to me if it's a good idea to hammer HandleIdleShutdown so much. That's a call for the big guns.

Anyway I only spoke up because of the line in the ticket that it might be already fixed. It isn't but happily it should be simple to deal with.

- George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-dev/attachments/20120706/2ecc8d23/attachment.html>


More information about the mythtv-dev mailing list