Queue UI no longer shows unknown ETAs as 0:00:00.

This commit is contained in:
Taloth Saldono
2014-05-24 12:50:34 +02:00
parent f304ad50d1
commit cb0f7792f2
6 changed files with 20 additions and 11 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ namespace NzbDrone.Core.Queue
public Decimal Size { get; set; }
public String Title { get; set; }
public Decimal Sizeleft { get; set; }
public TimeSpan Timeleft { get; set; }
public TimeSpan? Timeleft { get; set; }
public String Status { get; set; }
public RemoteEpisode RemoteEpisode { get; set; }
}
+4 -1
View File
@@ -24,7 +24,10 @@ namespace NzbDrone.Core.Queue
public List<Queue> GetQueue()
{
var queueItems = _downloadTrackingService.GetQueuedDownloads().Select(v => v.DownloadItem).ToList();
var queueItems = _downloadTrackingService.GetQueuedDownloads()
.Select(v => v.DownloadItem)
.OrderBy(v => v.RemainingTime)
.ToList();
return MapQueue(queueItems);
}