Fixed a bug in which CPUUsageLimiter would not update CPU usage and would keep current thread on sleep indefinitely.

This commit is contained in:
Alexandru Macocian
2019-10-23 12:09:09 +02:00
parent 9505d45558
commit c2fbaac300
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -5,12 +5,12 @@
<TargetFrameworks>netcoreapp2.1;net48;netstandard2.0;netcoreapp3.0</TargetFrameworks>
<ApplicationIcon />
<StartupObject />
<Version>1.1.0</Version>
<Version>1.1.1</Version>
<Authors>Alexandru-Victor Macocian</Authors>
<Product>MTSC</Product>
<Description>Modular TCP Server and Client</Description>
<AssemblyVersion>0.1.1.0</AssemblyVersion>
<FileVersion>0.1.1.0</FileVersion>
<AssemblyVersion>0.1.1.1</AssemblyVersion>
<FileVersion>0.1.1.1</FileVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Platforms>AnyCPU;x64</Platforms>
<PackageProjectUrl>https://github.com/AlexMacocian/MTSC</PackageProjectUrl>
@@ -42,6 +42,7 @@ namespace MTSC.Server.UsageMonitors
while(cpuUsage > cpuUsageLimit)
{
Thread.Sleep(10);
PollCPUUsage();
}
}