mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
The running status of a VPS event is now only taken seriously if that event has been seen within the last 30 seconds
This commit is contained in:
4
timers.c
4
timers.c
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: timers.c 1.23 2005/03/13 11:42:59 kls Exp $
|
||||
* $Id: timers.c 1.24 2005/03/13 12:53:51 kls Exp $
|
||||
*/
|
||||
|
||||
#include "timers.h"
|
||||
@@ -343,7 +343,7 @@ bool cTimer::Matches(time_t t, bool Directly) const
|
||||
firstday = 0;
|
||||
|
||||
if (HasFlags(tfActive)) {
|
||||
if (HasFlags(tfVps) && !Directly && event && event->Vps()) {
|
||||
if (HasFlags(tfVps) && !Directly && event && event->Vps() && event->SeenWithin(30)) {
|
||||
startTime = event->StartTime();
|
||||
stopTime = event->EndTime();
|
||||
return event->IsRunning(true);
|
||||
|
||||
Reference in New Issue
Block a user