From 83b178df6c0fa813bbc4a5e0c80dcf1e1b14e4ad Mon Sep 17 00:00:00 2001 From: AntINFINAit <43472352+AntINFINAit@users.noreply.github.com> Date: Sat, 7 Nov 2020 12:57:41 +0200 Subject: [PATCH] Update the CPU monitoring interval. --- .../Impostor.Commands.Core/DashBoard/PerformanceMonitors.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImpostorHQ.Command/Impostor.Commands.Core/DashBoard/PerformanceMonitors.cs b/ImpostorHQ.Command/Impostor.Commands.Core/DashBoard/PerformanceMonitors.cs index 4ae3439..a88ca4c 100644 --- a/ImpostorHQ.Command/Impostor.Commands.Core/DashBoard/PerformanceMonitors.cs +++ b/ImpostorHQ.Command/Impostor.Commands.Core/DashBoard/PerformanceMonitors.cs @@ -30,7 +30,7 @@ private void DoCount() { _startTime = DateTime.Now; _startUsage = ProcessCtx.TotalProcessorTime; - Thread.Sleep(1000); //should be good enough for the future. + Thread.Sleep(500); //should be good enough for the future. _endTime = DateTime.Now; _endUsage = ProcessCtx.TotalProcessorTime; this.CpuUsage = (int)((((_endUsage - _startUsage).TotalMilliseconds) / (Environment.ProcessorCount * ((_endTime - _startTime).TotalMilliseconds))) * 100);