mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
sectionsd: set time at start, even if diff is <120s
Origin commit data
------------------
Branch: ni/coolstream
Commit: 17ba068850
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-12-22 (Sun, 22 Dec 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
committed by
Jacek Jendrzej
parent
bd619b640f
commit
784fabca91
@@ -1368,7 +1368,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;
|
||||
|
Reference in New Issue
Block a user