mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:07:22 +01:00
add tolist for pruning
This commit is contained in:
parent
29eea0d800
commit
8386da976d
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ public class PerformanceCollector : IDisposable
|
|||
|
||||
foreach (var entries in _performanceCounters.ToList())
|
||||
{
|
||||
if (entries.Value.Last().Item1.AddMinutes(10) < TimeOnly.FromDateTime(DateTime.Now))
|
||||
if (entries.Value.ToList().Last().Item1.AddMinutes(10) < TimeOnly.FromDateTime(DateTime.Now))
|
||||
{
|
||||
_performanceCounters.Remove(entries.Key, out _);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue