Flood: explicitly cast DateFinished long? to long

This commit is contained in:
Jesse Chan 2021-05-18 14:08:42 +08:00 committed by Taloth
parent c8ad01e38e
commit 707c2c7978
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }