mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
sectionsd: replace hardcoded timestamp with BUILT_TIMESTAMP
based upon292cb9e8c2
Origin commit data ------------------ Branch: ni/coolstream Commit:8b49533d97
Author: vanhofen <vanhofen@gmx.de> Date: 2022-01-08 (Sat, 08 Jan 2022) Origin message was: ------------------ - sectionsd: replace hardcoded timestamp with BUILT_TIMESTAMP based upon292cb9e8c2
------------------ This commit was generated by Migit
This commit is contained in:
@@ -55,6 +55,9 @@
|
|||||||
#include "xmlutil.h"
|
#include "xmlutil.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
// version.h is located in $(top_builddir)
|
||||||
|
#include <src/gui/version.h>
|
||||||
|
|
||||||
#include <compatibility.h>
|
#include <compatibility.h>
|
||||||
#if ! HAVE_CST_HARDWARE
|
#if ! HAVE_CST_HARDWARE
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
@@ -1572,8 +1575,8 @@ void CTimeThread::run()
|
|||||||
if(first_time)
|
if(first_time)
|
||||||
sleep_time = 5;
|
sleep_time = 5;
|
||||||
}
|
}
|
||||||
/* in case of wrong TDT date, dont send time is set, 1609455600 - 01.01.2021 00:00:00 */
|
/* in case of wrong TDT date, dont send time is set */
|
||||||
if(time_ntp || (dvb_time > (time_t) 1609455600)) {
|
if(time_ntp || (dvb_time > (time_t) BUILT_TIMESTAMP)) {
|
||||||
sendTimeEvent(time_ntp, dvb_time);
|
sendTimeEvent(time_ntp, dvb_time);
|
||||||
debug(DEBUG_ERROR, "%s: Time set via %s, going to sleep for %d seconds.", name.c_str(),
|
debug(DEBUG_ERROR, "%s: Time set via %s, going to sleep for %d seconds.", name.c_str(),
|
||||||
time_ntp ? "NTP" : first_time ? "DVB (TDT)" : "DVB (TOT)", sleep_time);
|
time_ntp ? "NTP" : first_time ? "DVB (TDT)" : "DVB (TOT)", sleep_time);
|
||||||
|
@@ -3,6 +3,7 @@ BUILT_SOURCES = version.h
|
|||||||
version.h:
|
version.h:
|
||||||
@rm -f $@; \
|
@rm -f $@; \
|
||||||
echo "#define BUILT_DATE \"$$(date)\"" > $@
|
echo "#define BUILT_DATE \"$$(date)\"" > $@
|
||||||
|
echo "#define BUILT_TIMESTAMP \"$$(date +%s)\"" >> $@
|
||||||
@if test -d $(top_srcdir)/.git ; then \
|
@if test -d $(top_srcdir)/.git ; then \
|
||||||
pushd $(top_srcdir) ; \
|
pushd $(top_srcdir) ; \
|
||||||
GITTAG=$$(git tag -l "NI-*" | tail -n1); \
|
GITTAG=$$(git tag -l "NI-*" | tail -n1); \
|
||||||
|
Reference in New Issue
Block a user