From 06e263f2ef6fae2cf33229624e29610d4499fec1 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 9 Apr 2012 15:50:30 +0400 Subject: [PATCH] fix ntp bug in d74b5976029ede6db172e79b8f16921f74451376 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c1fc4263f089294139b64fe2d61f40b216847873 Author: [CST] Focus Date: 2012-04-09 (Mon, 09 Apr 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 805048e53..c78b6d9fb 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -1429,7 +1429,7 @@ void CTimeThread::run() sleep_time = 5; } /* in case of wrong TDT date, dont send time is set, 1325376000 - 01.01.2012 */ - if(dvb_time > (time_t) 1325376000) { + if(time_ntp || (dvb_time > (time_t) 1325376000)) { sendTimeEvent(time_ntp, dvb_time); xprintf("%s: Time set via %s, going to sleep for %d seconds.\n", name.c_str(), time_ntp ? "NTP" : first_time ? "DVB (TDT)" : "DVB (TOT)", sleep_time);