Ticket #3597: scheduler.cpp.2.diff
File scheduler.cpp.2.diff, 1.6 KB (added by , 10 years ago) |
---|
-
scheduler.cpp
2210 2210 } 2211 2211 resetIdleTime_lock.unlock(); 2212 2212 2213 if ( !idleSince.isValid())2213 if (statuschanged || !idleSince.isValid()) 2214 2214 { 2215 if (!idleSince.isValid()) 2216 idleSince = curtime; 2217 2215 2218 RecIter idleIter = reclist.begin(); 2216 2219 for ( ; idleIter != reclist.end(); ++idleIter) 2217 2220 if ((*idleIter)->GetRecordingStatus() == … … 2222 2225 { 2223 2226 if (curtime.secsTo 2224 2227 ((*idleIter)->GetRecordingStartTime()) - 2225 prerollseconds >2228 prerollseconds < 2226 2229 (idleWaitForRecordingTime * 60) + 2227 2230 idleTimeoutSecs) 2228 2231 { 2229 idleSince = curtime;2232 idleSince = QDateTime(); 2230 2233 } 2231 2234 } 2232 else2233 idleSince = curtime;2234 2235 } 2235 else 2236 2237 if (idleSince.isValid()) 2236 2238 { 2237 2239 // is the machine already idling the timeout time? 2238 2240 if (idleSince.addSecs(idleTimeoutSecs) < curtime)