Skip to content

Commit

Permalink
Fix Reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Mag-nus committed Apr 4, 2019
1 parent 8503b29 commit 80a7a04
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Source/ACE.Server/Managers/ServerPerformanceMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public enum MonitorType
private static readonly TimeSpan last1hClearInteval = TimeSpan.FromHours(1);
private static readonly TimeSpan last24hClearInterval = TimeSpan.FromHours(24);

private static DateTime last5mClear = DateTime.MinValue;
private static DateTime last1hClear = DateTime.MinValue;
private static DateTime last24hClear = DateTime.MinValue;
private static DateTime last5mClear;
private static DateTime last1hClear;
private static DateTime last24hClear;

private static TimeSpan Monitors5mRunTime => DateTime.UtcNow - last5mClear;
private static TimeSpan Monitors1hRunTime => DateTime.UtcNow - last1hClear;
Expand Down Expand Up @@ -131,6 +131,10 @@ public static void Reset()
monitors1h[i].ClearEventHistory();
monitors24h[i].ClearEventHistory();
}

last5mClear = DateTime.UtcNow;
last1hClear = DateTime.UtcNow;
last24hClear = DateTime.UtcNow;
}


Expand Down

0 comments on commit 80a7a04

Please sign in to comment.