mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:27:24 +01:00
disable data application and scanner in combat
This commit is contained in:
parent
bcf0d422b8
commit
bd32a55ce5
13 changed files with 95 additions and 43 deletions
|
|
@ -173,7 +173,7 @@ public sealed class PerformanceCollectorService : IHostedService
|
|||
{
|
||||
try
|
||||
{
|
||||
var last = entries.Value.Last();
|
||||
var last = entries.Value.ToList().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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue