From 0bc6629e3a31a855dc777995d10dc562e766f34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Sun, 9 Jun 2013 17:50:45 +0000 Subject: [PATCH] Fixed an issue in the ram group implementation (sensor values did not get stored to the settings instance). --- Hardware/RAM/RAMGroup.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Hardware/RAM/RAMGroup.cs b/Hardware/RAM/RAMGroup.cs index e4559d0..6dd9374 100644 --- a/Hardware/RAM/RAMGroup.cs +++ b/Hardware/RAM/RAMGroup.cs @@ -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 @@ using System; 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 @@ namespace OpenHardwareMonitor.Hardware.RAM { name = "Generic Memory"; } - hardware = new IHardware[] { new GenericRAM(name, settings) }; + hardware = new Hardware[] { new GenericRAM(name, settings) }; } public string GetReport() { @@ -46,7 +46,8 @@ namespace OpenHardwareMonitor.Hardware.RAM { } public void Close() { - + foreach (Hardware ram in hardware) + ram.Close(); } } }