1 write to MaximumCpuUnits
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
SystemResources.cs (1)
58
MaximumCpuUnits
= Throw.IfLessThanOrEqual(maximumCpuUnits, 0.0);
5 references to MaximumCpuUnits
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
IResourceUtilizationSnapshotProviderTests.cs (1)
16
Assert.Equal(DummyProvider.CpuUnits, provider.Resources.
MaximumCpuUnits
);
IResourceUtilizationTrackerTests.cs (1)
23
Assert.Equal(DummyTracker.CpuUnits, utilization.SystemResources.
MaximumCpuUnits
);
Linux\AcceptanceTest.cs (2)
133
Assert.Equal(2.0d, provider.Resources.
MaximumCpuUnits
); // read from cpuset.cpus
181
Assert.Equal(0.2d, Math.Round(provider.Resources.
MaximumCpuUnits
, 1)); // read from cpuset.cpus
SystemResourcesTests.cs (1)
20
Assert.Equal(CpuUnits, systemResources.
MaximumCpuUnits
);