]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
otamux: fix the 15 seconds delay for the initial scan
authorJaroslav Kysela <perex@perex.cz>
Mon, 14 Jan 2019 14:20:50 +0000 (15:20 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 14 Jan 2019 14:21:34 +0000 (15:21 +0100)
src/epggrab/otamux.c

index 25f45e445270710ce02b6e73140db7418c0562c3..ef76b88958bb07bfc0809ac5d4e79424babc4b47 100644 (file)
@@ -878,7 +878,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);
@@ -891,6 +891,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);
   }