summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/System/Diagnostics
diff options
context:
space:
mode:
authorSung Yoon Whang <suwhang@microsoft.com>2019-03-28 17:25:00 -0700
committerGitHub <noreply@github.com>2019-03-28 17:25:00 -0700
commit9517ad0821e339418b3d3d31145dc0bbb1afc38d (patch)
treeeb58de3451551fe41e78e7a1beac7b783d9cf4e7 /src/System.Private.CoreLib/shared/System/Diagnostics
parent72a3f75791be7d78c825ce1f4f02a54c8a7fa344 (diff)
downloadcoreclr-9517ad0821e339418b3d3d31145dc0bbb1afc38d.tar.gz
coreclr-9517ad0821e339418b3d3d31145dc0bbb1afc38d.tar.bz2
coreclr-9517ad0821e339418b3d3d31145dc0bbb1afc38d.zip
Fix increment calculation in IncrementingPollingCounter (#23502)
* Add test for IncrementingPollingCounter * Fix a bug in Increment calculation in IncrementingPollingCounter * Remove setting DisplayName property since that's a private property for now * fix comment * Remove unused variables
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Diagnostics')
-rw-r--r--src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/IncrementingPollingCounter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/IncrementingPollingCounter.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/IncrementingPollingCounter.cs
index b5a2582083..8bad728a18 100644
--- a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/IncrementingPollingCounter.cs
+++ b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/IncrementingPollingCounter.cs
@@ -55,7 +55,7 @@ namespace System.Diagnostics.Tracing
{
lock(MyLock)
{
- _increment += _getCountFunction();
+ _increment = _getCountFunction();
}
}
catch (Exception ex)