From 757e2a90936a92773209c1867f14583e34b14558 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 14 Jan 2019 15:20:50 +0100 Subject: [PATCH] otamux: fix the 15 seconds delay for the initial scan --- src/epggrab/otamux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index 938b1b1b2..495354390 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -952,7 +952,7 @@ epggrab_ota_trigger ( int secs ) lock_assert(&global_lock); /* notify another system layers, that we will do EPG OTA */ - secs = MIN(1, MAX(secs, 7*24*3600)); + secs = MINMAX(secs, 1, 7*24*3600); dbus_emit_signal_s64("/epggrab/ota", "next", time(NULL) + secs); epggrab_ota_pending_flag = 1; epggrab_ota_kick(secs); @@ -965,6 +965,7 @@ epggrab_ota_post ( void ) /* Init timer (call after full init - wait for network tuners) */ if (epggrab_conf.ota_initial) { + tvhtrace(LS_EPGGRAB, "ota initial scan in 15 seconds"); epggrab_ota_trigger(15); t = time(NULL); } -- 2.47.2