Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Small timer display glitch



Stefan Huelswitt wrote:
> 
> Hi,
> if a timer with a firstday is recording at this firstday, the
> display in the timers menu still shows !, but I think it show #
> as the timer is recording.
> 
> --- menu.c      Sun Mar 31 23:17:42 2002
> +++ menu.c.new  Fri Apr  5 22:24:45 2002
> @@ -1160,7 +1160,7 @@
>  {
>    char *buffer = NULL;
>    asprintf(&buffer, "%c\t%d\t%s\t%02d:%02d\t%02d:%02d\t%s",
> -                    !timer->active ? ' ' : timer->firstday ? '!' : timer->recording ? '#' : '>',
> +                    !timer->active ? ' ' : timer->recording ? '#' : timer->firstday ? '!' : '>',
>                      timer->channel,
>                      timer->PrintDay(timer->day),
>                      timer->start / 100,

I have already changed this in a somewhat different way.
Please try the following instead:

--- config.c    2002/04/01 11:54:05 
+++ config.c    2002/04/02 21:56:51
@@ -606,14 +606,14 @@
          if ((!firstday || a >= firstday) && t <= b) {
             startTime = a;
             stopTime = b;
-            if (t >= firstday + SECSINDAY)
-               firstday = 0;
             break;
             }
          }
       }
   if (!startTime)
      startTime = firstday; // just to have something that's more than a week in the future
+  else if (t > startTime || t > firstday + SECSINDAY + 3600) // +3600 in case of DST change
+     firstday = 0;
   return active && startTime <= t && t < stopTime; // must stop *before* stopTime to allow adjacent timers
 }


Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________



Home | Main Index | Thread Index