Files
ReLibreHardwareMonitor/Hardware/RAM/RAMGroup.cs
T
Aqua Computer e22a7cba64 RAM Code Refactoring (#108)
RAM Code Refactoring
Added Virtual Memory

Thanks to @aquacomputer
2019-07-25 19:00:05 +02:00

35 lines
939 B
C#

// Mozilla Public License 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) LibreHardwareMonitor and Contributors
// All Rights Reserved
using System;
using System.Collections.Generic;
namespace OpenHardwareMonitor.Hardware.RAM {
internal class RAMGroup : IGroup {
private Hardware[] hardware;
public RAMGroup(SMBIOS smbios, ISettings settings) {
// No implementation for RAM on Unix systems
if (Software.OperatingSystem.IsLinux) {
hardware = new Hardware[0];
return;
}
hardware = new Hardware[] { new GenericRAM("Generic Memory", settings) };
}
public string GetReport() {
return null;
}
public IEnumerable<IHardware> Hardware => hardware;
public void Close() {
foreach (Hardware ram in hardware)
ram.Close();
}
}
}