mirror of https://github.com/Sonarr/Sonarr
Flood: explicitly cast DateFinished long? to long
This commit is contained in:
parent
c8ad01e38e
commit
707c2c7978
|
@ -163,7 +163,7 @@ namespace NzbDrone.Core.Download.Clients.Flood
|
||||||
else if (properties.DateFinished != null && properties.DateFinished > 0)
|
else if (properties.DateFinished != null && properties.DateFinished > 0)
|
||||||
{
|
{
|
||||||
// Check if seed time reached
|
// Check if seed time reached
|
||||||
if ((DateTimeOffset.Now - DateTimeOffset.FromUnixTimeSeconds(properties.DateFinished)) >= seedConfig.SeedTime)
|
if ((DateTimeOffset.Now - DateTimeOffset.FromUnixTimeSeconds((long)properties.DateFinished)) >= seedConfig.SeedTime)
|
||||||
{
|
{
|
||||||
item.CanMoveFiles = item.CanBeRemoved = true;
|
item.CanMoveFiles = item.CanBeRemoved = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue