# HG changeset patch # User moel.mich # Date 1370800245 0 # Node ID c37f2b5ee55b361656a974e111c940f531377770 # Parent f4e2e3e69651fc71b02c81ea3daf26e51e1f5307 Fixed an issue in the ram group implementation (sensor values did not get stored to the settings instance). diff -r f4e2e3e69651 -r c37f2b5ee55b Hardware/RAM/RAMGroup.cs --- a/Hardware/RAM/RAMGroup.cs Sun Jun 09 17:44:05 2013 +0000 +++ b/Hardware/RAM/RAMGroup.cs Sun Jun 09 17:50:45 2013 +0000 @@ -4,7 +4,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - Copyright (C) 2012 Michael Möller + Copyright (C) 2012-2013 Michael Möller */ @@ -13,14 +13,14 @@ namespace OpenHardwareMonitor.Hardware.RAM { internal class RAMGroup : IGroup { - private IHardware[] hardware; + private Hardware[] hardware; public RAMGroup(SMBIOS smbios, ISettings settings) { // No implementation for RAM on Unix systems int p = (int)Environment.OSVersion.Platform; if ((p == 4) || (p == 128)) { - hardware = new IHardware[0]; + hardware = new Hardware[0]; return; } @@ -32,7 +32,7 @@ name = "Generic Memory"; } - hardware = new IHardware[] { new GenericRAM(name, settings) }; + hardware = new Hardware[] { new GenericRAM(name, settings) }; } public string GetReport() { @@ -46,7 +46,8 @@ } public void Close() { - + foreach (Hardware ram in hardware) + ram.Close(); } } }