Fix some code analysis issues (#841)
This commit is contained in:
@@ -18,10 +18,8 @@ namespace LibreHardwareMonitor.Hardware.Memory
|
||||
private readonly Sensor _virtualMemoryLoad;
|
||||
private readonly Sensor _virtualMemoryUsed;
|
||||
|
||||
|
||||
public override HardwareType HardwareType => HardwareType.Memory;
|
||||
|
||||
|
||||
public GenericLinuxMemory(string name, ISettings settings) : base(name, new Identifier("ram"), settings)
|
||||
{
|
||||
_physicalMemoryUsed = new Sensor("Memory Used", 0, SensorType.Data, this, settings);
|
||||
@@ -43,7 +41,6 @@ namespace LibreHardwareMonitor.Hardware.Memory
|
||||
ActivateSensor(_virtualMemoryLoad);
|
||||
}
|
||||
|
||||
|
||||
public override void Update()
|
||||
{
|
||||
try
|
||||
@@ -83,7 +80,7 @@ namespace LibreHardwareMonitor.Hardware.Memory
|
||||
}
|
||||
}
|
||||
|
||||
private long GetMemInfoValue(string line)
|
||||
private static long GetMemInfoValue(string line)
|
||||
{
|
||||
// Example: "MemTotal: 32849676 kB"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user