Changed the name of RAM hardware to be always "Generic Memory" because the information from the SMBIOS table is not reliable.

This commit is contained in:
Michael Möller
2013-07-14 13:57:13 +00:00
parent 97e0a9c86f
commit 6aea99bd27
+1 -9
View File
@@ -24,15 +24,7 @@ namespace OpenHardwareMonitor.Hardware.RAM {
return;
}
string name;
if (smbios.MemoryDevices.Length > 0) {
name = smbios.MemoryDevices[0].ManufacturerName + " " +
smbios.MemoryDevices[0].PartNumber;
} else {
name = "Generic Memory";
}
hardware = new Hardware[] { new GenericRAM(name, settings) };
hardware = new Hardware[] { new GenericRAM("Generic Memory", settings) };
}
public string GetReport() {