(Primarily for Kevin Deane-Freeman with regard to previous posts about
scheduled alarms not being scheduled)

I had observed that fill24HScheduler only seems to run only once or
twice a week.  I went through through your v44 code and found something
in the CheckAlarm subroutine.  The comment for the first "if" statement
says that fill24HScheduler will happen whenever the schedule is empty
or every day.  The code that followed didn't seem to do this.  I
modified the line to see what it would do.  Here is the text from the
modified CheckAlarm code (I commented out the original line and made
another one):

# fill the scheduler is it's empty or it's midnight.
#if (($time < 3600 && defined $lastfillDay && $lastFillDay != $wday ))
{
if (($time < 3600 || (defined $lastfillDay && $lastFillDay != $wday) ))
{


After this change, all my alarms now work.  Only problem is that now
fill24HScheduler runs every minute between 12:00AM and 12:59AM, but
this shouldn't be hard to fix.

Does this seem reasonable?

Thanks!

Tim


-- 
beaststwo
------------------------------------------------------------------------
beaststwo's Profile: http://forums.slimdevices.com/member.php?userid=16530
View this thread: http://forums.slimdevices.com/showthread.php?t=46577

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to