mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
fixed jobs running all the time.
This commit is contained in:
parent
ba68dd9386
commit
77eedf448e
5 changed files with 63 additions and 27 deletions
|
@ -33,7 +33,7 @@ namespace NzbDrone.Core.Jobs
|
|||
|
||||
public IList<JobDefinition> GetPendingJobs()
|
||||
{
|
||||
return Queryable.Where(c => c.Enable && c.LastExecution < DateTime.UtcNow.AddMinutes(c.Interval)).ToList();
|
||||
return Queryable.Where(c => c.Enable && c.LastExecution < DateTime.Now.AddMinutes(-c.Interval)).ToList();
|
||||
}
|
||||
|
||||
public void Init()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue