Skip to content

Commit 0b9b9a5

Browse files
committed
fix: Correct SMBIOS memory type enumeration mapping (DDR3=0x18, DDR4=0x1A)
1 parent 05eaa81 commit 0b9b9a5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ private static unsafe (long? FrequencyMHz, string? MemoryType) GetWindowsSmbiosM
238238

239239
private static string? MapSmbiosMemoryType(byte type) => type switch
240240
{
241-
0x1A => "DDR3",
242-
0x1A + 1 => "DDR4",
243-
0x1A + 2 => "LPDDR3",
244-
0x1A + 3 => "LPDDR4",
241+
0x18 => "DDR3",
242+
0x1A => "DDR4",
243+
0x1B => "LPDDR3",
244+
0x1C => "LPDDR4",
245245
0x22 => "DDR5",
246246
0x23 => "LPDDR5",
247247
_ => null

0 commit comments

Comments
 (0)