1.1 --- a/Hardware/RAM/RAMGroup.cs Tue Jul 24 16:04:30 2012 +0000
1.2 +++ b/Hardware/RAM/RAMGroup.cs Tue Jul 24 16:45:48 2012 +0000
1.3 @@ -8,12 +8,22 @@
1.4
1.5 */
1.6
1.7 +using System;
1.8 +
1.9 namespace OpenHardwareMonitor.Hardware.RAM {
1.10 internal class RAMGroup : IGroup {
1.11
1.12 private IHardware[] hardware;
1.13
1.14 public RAMGroup(SMBIOS smbios, ISettings settings) {
1.15 +
1.16 + // No implementation for RAM on Unix systems
1.17 + int p = (int)Environment.OSVersion.Platform;
1.18 + if ((p == 4) || (p == 128)) {
1.19 + hardware = new IHardware[0];
1.20 + return;
1.21 + }
1.22 +
1.23 string name;
1.24 if (smbios.MemoryDevices.Length > 0) {
1.25 name = smbios.MemoryDevices[0].ManufacturerName + " " +