Fix crash of LibreHardwareMonitorLib using Linux and Net5 / Add RAM support for linux (#573)
Thanks to @Tederean.
This commit is contained in:
@@ -14,13 +14,14 @@ namespace LibreHardwareMonitor.Hardware.Memory
|
||||
|
||||
public MemoryGroup(ISettings settings)
|
||||
{
|
||||
// No implementation for RAM on Unix systems
|
||||
if (Software.OperatingSystem.IsUnix)
|
||||
{
|
||||
_hardware = new Hardware[0];
|
||||
return;
|
||||
_hardware = new Hardware[] { new GenericLinuxMemory("Generic Memory", settings) };
|
||||
}
|
||||
else
|
||||
{
|
||||
_hardware = new Hardware[] { new GenericWindowsMemory("Generic Memory", settings) };
|
||||
}
|
||||
_hardware = new Hardware[] { new GenericMemory("Generic Memory", settings) };
|
||||
}
|
||||
|
||||
public string GetReport()
|
||||
|
||||
Reference in New Issue
Block a user