1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

New: Store Task StartTime, Show Duration in UI

This commit is contained in:
Qstick
2019-12-15 00:34:45 -05:00
parent edcc0ba7ce
commit da50b49e01
12 changed files with 57 additions and 8 deletions
@@ -54,6 +54,7 @@ namespace Radarr.Api.V3.System.Tasks
TaskName = taskName,
Interval = scheduledTask.Interval,
LastExecution = scheduledTask.LastExecution,
LastStartTime = scheduledTask.LastStartTime,
NextExecution = scheduledTask.LastExecution.AddMinutes(scheduledTask.Interval)
};
}
@@ -9,6 +9,9 @@ namespace Radarr.Api.V3.System.Tasks
public string TaskName { get; set; }
public int Interval { get; set; }
public DateTime LastExecution { get; set; }
public DateTime LastStartTime { get; set; }
public DateTime NextExecution { get; set; }
public TimeSpan LastDuration => LastExecution - LastStartTime;
}
}