sectionsd: set time at start, even if diff is <120s

Origin commit data
------------------
Commit: 97fef4e52b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-12-22 (Sun, 22 Dec 2013)
This commit is contained in:
Stefan Seyfried
2013-12-22 11:20:25 +01:00
parent 8af7c51742
commit aa0ce3cd24

View File

@@ -1355,7 +1355,7 @@ void CTimeThread::setSystemTime(time_t tim)
#endif
if (timediff == 0) /* very unlikely... :-) */
return;
if (abs(tim - tv.tv_sec) < 120) { /* abs() is int */
if (timeset && abs(tim - tv.tv_sec) < 120) { /* abs() is int */
struct timeval oldd;
tv.tv_sec = timediff / 1000000LL;
tv.tv_usec = timediff % 1000000LL;