sectionsd: don't truncate 64bit value before comparing

Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4d5e7bf354
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-05 (Tue, 05 Mar 2013)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-03-05 19:43:09 +01:00
committed by Jacek Jendrzej
parent 9cd118a843
commit 1173ab8f1d

View File

@@ -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;