Ticket #13072: 13072-testfix1.patch

File 13072-testfix1.patch, 866 bytes (added by gigem, 7 years ago)
  • scheduler.cpp

    old new  
    22032203                // Check for slaves that can be put to sleep.
    22042204                PutInactiveSlavesToSleep();
    22052205                lastSleepCheck = MythDate::current();
     2206                checkSlaves = false;
    22062207            }
    22072208        }
    22082209
    22092210        nextStartTime = MythDate::current().addDays(14);
    2210         nextWakeTime = lastSleepCheck.addSecs(kSleepCheck);
     2211        if (checkSlaves)
     2212            nextWakeTime = MythDate::current().addSecs(1);
     2213        else
     2214            nextWakeTime = lastSleepCheck.addSecs(kSleepCheck);
    22112215        LOG(VB_GENERAL, LOG_INFO,
    22122216            QString("Before skipping history with nwt %1 nst %2 lastSleepCheck %3").arg(nextWakeTime.toString()).arg(nextStartTime.toString()).arg(lastSleepCheck.toString()));
    22132217