diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-05-20 19:38:08 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-05-20 19:38:08 -0400 |
commit | 310eb1fe9afdb820d5584a46200bf073fc00ccb7 (patch) | |
tree | 72c16c6d4f8447f45e8e6612cb25cd255d2b308c /src/SMAPI/Framework/PerformanceMonitoring | |
parent | aa5cc2c9be8bdc79c6fa7b1b9c2581a05b88117d (diff) | |
parent | c5c30189e43f93c3f3c66207945187a974656c9e (diff) | |
download | SMAPI-310eb1fe9afdb820d5584a46200bf073fc00ccb7.tar.gz SMAPI-310eb1fe9afdb820d5584a46200bf073fc00ccb7.tar.bz2 SMAPI-310eb1fe9afdb820d5584a46200bf073fc00ccb7.zip |
Merge branch 'mod/harmony-2.0' into develop
# Conflicts:
# docs/release-notes.md
# src/SMAPI/Framework/ModLoading/AssemblyLoader.cs
Diffstat (limited to 'src/SMAPI/Framework/PerformanceMonitoring')
-rw-r--r-- | src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs index 3cf668ee..42825999 100644 --- a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs +++ b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Harmony; namespace StardewModdingAPI.Framework.PerformanceMonitoring { @@ -57,7 +56,7 @@ namespace StardewModdingAPI.Framework.PerformanceMonitoring // add entry if (this.Entries.Count > this.MaxEntries) this.Entries.Pop(); - this.Entries.Add(entry); + this.Entries.Push(entry); // update metrics if (this.PeakPerformanceCounterEntry == null || entry.ElapsedMilliseconds > this.PeakPerformanceCounterEntry.Value.ElapsedMilliseconds) |