diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-09-19 23:57:32 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-09-19 23:57:32 +0200 |
commit | 6dbdb639ed4ee6ce5d446bd40ec88920eb8b0ee5 (patch) | |
tree | 5f9b9bad371c528fe04a925186edb8a2291e3bd9 /conflictcheck.c | |
parent | fd738cd2046620a3b7e96fb5884aa60b14b2f763 (diff) | |
download | vdr-plugin-epgsearch-6dbdb639ed4ee6ce5d446bd40ec88920eb8b0ee5.tar.gz vdr-plugin-epgsearch-6dbdb639ed4ee6ce5d446bd40ec88920eb8b0ee5.tar.bz2 |
changed the maximum number of days for a timer conflict check from 99 to 14
Diffstat (limited to 'conflictcheck.c')
-rw-r--r-- | conflictcheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conflictcheck.c b/conflictcheck.c index 2118a7d..2c29b38 100644 --- a/conflictcheck.c +++ b/conflictcheck.c @@ -248,7 +248,7 @@ cList<cConflictCheckTimerObj>* cConflictCheck::CreateCurrentTimerList() } // collect repeating timers from now until the date of the timer with tMax - time_t maxCheck = time(NULL) + EPGSearchConfig.checkMaxDays * SECSINDAY; + time_t maxCheck = time(NULL) + min(14,EPGSearchConfig.checkMaxDays) * SECSINDAY; tMax = max(tMax, maxCheck); for (ti = Timers.First(); ti; ti = Timers.Next(ti)) { @@ -359,7 +359,7 @@ cList<cConflictCheckTime>* cConflictCheck::CreateConflictList(cList<cConflictChe LogFile.Log(3,"create conflict list"); relevantConflicts = 0; numConflicts = 0; - maxCheck = time(NULL) + EPGSearchConfig.checkMaxDays * SECSINDAY; + maxCheck = time(NULL) + min(14, EPGSearchConfig.checkMaxDays) * SECSINDAY; // check each time for(cConflictCheckTime* checkTime = EvalTimeList->First(); checkTime; checkTime = EvalTimeList->Next(checkTime)) |