fix not-yet-scanned-in files

This commit is contained in:
rootdarkarchon
2023-10-15 01:03:34 +02:00
parent 79528b95e4
commit fb983712c4
3 changed files with 3 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ public sealed class PerformanceCollectorService : IHostedService
{
try
{
var last = entries.Value.ToList()[^1];
var last = entries.Value.Last();
if (last.Item1.AddMinutes(10) < TimeOnly.FromDateTime(DateTime.Now) && !_performanceCounters.TryRemove(entries.Key, out _))
{
_logger.LogDebug("Could not remove performance counter {counter}", entries.Key);