Skip to content

Commit ea28d4f

Browse files
committed
.NET 6 required
1 parent bd6cb51 commit ea28d4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

+stdlib/ram_total.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
bytes = uint64(0);
1212

1313

14-
if stdlib.dotnet_api() >= 3
14+
if stdlib.dotnet_api() >= 6
1515
% .NET is 2-3x faster than Java for this
1616
% https://learn.microsoft.com/en-us/dotnet/api/system.gcmemoryinfo.totalavailablememorybytes
1717
bytes = System.GC.GetGCMemoryInfo().TotalAvailableMemoryBytes;

test/TestSys.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function test_cpu_arch(tc)
7373
end
7474

7575
function test_ram_total(tc)
76-
tc.assumeTrue(stdlib.has_dotnet() || stdlib.has_java())
76+
tc.assumeTrue(stdlib.dotnet_api() >= 6 || stdlib.has_java())
7777

7878
t = stdlib.ram_total();
7979
tc.verifyGreaterThan(t, 0)

0 commit comments

Comments
 (0)