Skip to content

Commit

Permalink
fix: reverse time estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Mar 28, 2024
1 parent 4bc5059 commit 0bc37ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shokofin/Resolvers/ShokoResolveManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private void OnLibraryManagerItemRemoved(object? sender, ItemChangeEventArgs e)
})
.Where(tuple => !string.IsNullOrEmpty(tuple.sourceLocation))
.ToList();
var timeSpent = start - DateTime.UtcNow;
var timeSpent = DateTime.UtcNow - start;
Logger.LogDebug(
"Found ≤{FileCount} files to potentially use within media folder at {Path} in {TimeSpan} (ImportFolder={FolderId},RelativePath={RelativePath})",
allFilesForImportFolder.Count,
Expand Down Expand Up @@ -243,7 +243,7 @@ await Task.WhenAll(files
CleanupDirectoryStructure(symbolicLink);
}

var timeSpent = start - DateTime.UtcNow;
var timeSpent = DateTime.UtcNow - start;
Logger.LogInformation(
"Created {CreatedCount}, skipped {SkippedCount}, and removed {RemovedCount} symbolic links for media folder at {Path} in {TimeSpan}",
allPathsForVFS.Count - skipped,
Expand Down

0 comments on commit 0bc37ad

Please sign in to comment.