From e2c1d765166b1025b2a976c1e823d6cb78659f2b Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Tue, 18 May 2021 14:08:42 +0800 Subject: [PATCH] Flood: explicitly cast DateFinished long? to long --- src/NzbDrone.Core/Download/Clients/Flood/Flood.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/Clients/Flood/Flood.cs b/src/NzbDrone.Core/Download/Clients/Flood/Flood.cs index 6b2a820ee..b89d1b250 100644 --- a/src/NzbDrone.Core/Download/Clients/Flood/Flood.cs +++ b/src/NzbDrone.Core/Download/Clients/Flood/Flood.cs @@ -156,7 +156,7 @@ namespace NzbDrone.Core.Download.Clients.Flood else if (properties.DateFinished != null && properties.DateFinished > 0) { // 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; }