From bceeecfe25a52c3c66a6fc45b255ee80e664a508 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 15 Feb 2009 20:24:29 +0100 Subject: handle timers as modified only if the new start/stop times have changed by more than 60 secs --- searchtimer_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searchtimer_thread.c') diff --git a/searchtimer_thread.c b/searchtimer_thread.c index 6c86335..80a6885 100644 --- a/searchtimer_thread.c +++ b/searchtimer_thread.c @@ -181,7 +181,7 @@ bool cSearchTimerThread::TimerWasModified(cTimer* t) { time_t StartTime = time_t(atol(start)); time_t StopTime = time_t(atol(stop)); - if (t->StartTime() != StartTime || t->StopTime() != StopTime) + if (abs(t->StartTime() - StartTime) >= 60 || abs(t->StopTime() -StopTime) >= 60) bMod = true; } if (start) free(start); -- cgit v1.2.3