From 4d5e7bf354a855fb014bd17a2822a2bef77b2746 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Tue, 5 Mar 2013 19:43:09 +0100 Subject: [PATCH] sectionsd: don't truncate 64bit value before comparing Signed-off-by: Jacek Jendrzej --- src/eitd/sectionsd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index 909378a27..4b41a40eb 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -1338,7 +1338,7 @@ void CTimeThread::setSystemTime(time_t tim) #endif if (timediff == 0) /* very unlikely... :-) */ return; - if (abs(timediff) < 120000000LL) { + if (abs(tim - tv.tv_sec) < 120) { /* abs() is int */ struct timeval oldd; tv.tv_sec = timediff / 1000000LL; tv.tv_usec = timediff % 1000000LL;