3 references to MemoryTotal
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
ResourceUtilizationTests.cs (3)
15
private readonly SystemResources _systemResources = new(CpuUnits, CpuUnits,
MemoryTotal
,
MemoryTotal
);
23
Assert.Equal(Math.Min(1.0, (double)MemoryUsed /
MemoryTotal
) * 100.0, utilization.MemoryUsedPercentage);