Fix CounterGroup to use built-in types
authorStephen Toub <stoub@microsoft.com>
Fri, 2 Aug 2019 00:42:56 +0000 (20:42 -0400)
committerStephen Toub <stoub@microsoft.com>
Fri, 2 Aug 2019 06:42:52 +0000 (02:42 -0400)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/c96da4ac6e8e5191064980234fc3a497f753c7e7

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/CounterGroup.cs

index d8b285b..2a560a9 100644 (file)
@@ -236,7 +236,7 @@ namespace System.Diagnostics.Tracing
             AutoResetEvent? sleepEvent = null;
             while (true)
             {
-                int sleepDurationInMilliseconds = Int32.MaxValue;
+                int sleepDurationInMilliseconds = int.MaxValue;
                 lock (s_counterGroupLock)
                 {
                     sleepEvent = s_pollingThreadSleepEvent;
@@ -253,7 +253,7 @@ namespace System.Diagnostics.Tracing
                         sleepDurationInMilliseconds = Math.Min(sleepDurationInMilliseconds, millisecondsTillNextPoll);
                     }
                 }
-                if (sleepDurationInMilliseconds == Int32.MaxValue)
+                if (sleepDurationInMilliseconds == int.MaxValue)
                 {
                     sleepDurationInMilliseconds = -1; // WaitOne uses -1 to mean infinite
                 }