Flood: explicitly cast DateFinished long? to long

pull/1392/head
Jesse Chan 4 years ago committed by ta264
parent 05a8a3d764
commit e2c1d76516

@ -156,7 +156,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…
Cancel
Save