Ticket #1573: eit_1.diff
File eit_1.diff, 2.9 KB (added by , 18 years ago) |
---|
-
mythtv/libs/libmythtv/tv_rec.cpp
78 78 #define LOC QString("TVRec(%1): ").arg(cardid) 79 79 #define LOC_ERR QString("TVRec(%1) Error: ").arg(cardid) 80 80 81 /// How many seconds after entering kState_None should we start EIT Scanner82 const uint TVRec::kEITScanStartTimeout = 60; /* 1 minute */83 84 81 /// How many milliseconds the signal monitor should wait between checks 85 82 const uint TVRec::kSignalMonitoringRate = 50; /* msec */ 86 83 … … 773 770 { 774 771 // Add some randomness to avoid all cards starting 775 772 // EIT scanning at nearly the same time. 776 uint timeout = kEITScanStartTimeout + random() % 59; 773 uint idle_start = gContext->GetNumSetting("EITCrawIdleStart", 1); 774 uint timeout = (idle_start * 60) + random() % 59; 777 775 eitScanStartTime = eitScanStartTime.addSecs(timeout); 778 776 } 779 777 else … … 1212 1210 1213 1211 // Add some randomness to avoid all cards starting 1214 1212 // EIT scanning at nearly the same time. 1215 uint timeout = kEITScanStartTimeout + random() % 59; 1213 uint idle_start = gContext->GetNumSetting("EITCrawIdleStart", 1); 1214 uint timeout = (idle_start * 60) + random() % 59; 1216 1215 eitScanStartTime = QDateTime::currentDateTime().addSecs(timeout); 1217 1216 1218 1217 while (HasFlags(kFlagRunMainLoop)) -
mythtv/libs/libmythtv/tv_rec.h
408 408 int retune_requests; 409 409 410 410 public: 411 static const uint kEITScanStartTimeout;412 411 static const uint kSignalMonitoringRate; 413 412 414 413 // General State flags -
mythtv/setup/backendsettings.cpp
252 252 return gc; 253 253 }; 254 254 255 static GlobalSpinBox *EITCrawIdleStart() 256 { 257 GlobalSpinBox *gc = new GlobalSpinBox("EITCrawIdleStart", 1, 120, 1); 258 gc->setLabel(QObject::tr("Backend Idle Before EIT Craw (mins)")); 259 gc->setValue(1); 260 QString help = QObject::tr( 261 "The amount of idle time, in minutes, to wait before listings " 262 "data is collected."); 263 gc->setHelpText(help); 264 return gc; 265 } 255 266 256 267 static GlobalSpinBox *WOLbackendReconnectWaitTime() 257 268 { … … 670 681 group2a1->setLabel(QObject::tr("EIT Scanner Options")); 671 682 group2a1->addChild(EITTransportTimeout()); 672 683 group2a1->addChild(EITIgnoresSource()); 684 group2a1->addChild(EITCrawIdleStart()); 673 685 addChild(group2a1); 674 686 675 687 VerticalConfigurationGroup* group3 = new VerticalConfigurationGroup(false);