Also exclude OEM variant of 980 Pro NVMe

This commit is contained in:
PhyxionNL
2022-02-23 16:55:43 +01:00
parent a72a517153
commit cd9e15d7dc
5 changed files with 33 additions and 43 deletions
@@ -75,15 +75,13 @@ namespace LibreHardwareMonitor.Hardware.Storage
if (info == null)
return null;
info.DiskSize = diskSize;
info.DeviceId = deviceId;
info.Scsi = $@"\\.\SCSI{scsiPort}:";
if (info.Removable || info.BusType == Kernel32.STORAGE_BUS_TYPE.BusTypeVirtual || info.BusType == Kernel32.STORAGE_BUS_TYPE.BusTypeFileBackedVirtual)
if (info.Removable || info.BusType is Kernel32.STORAGE_BUS_TYPE.BusTypeVirtual or Kernel32.STORAGE_BUS_TYPE.BusTypeFileBackedVirtual)
return null;
//fallback, when it is not possible to read out with the nvme implementation,
//try it with the sata smart implementation
if (info.BusType == Kernel32.STORAGE_BUS_TYPE.BusTypeNvme)
@@ -137,7 +135,6 @@ namespace LibreHardwareMonitor.Hardware.Storage
if (data == null)
return;
ulong value = (ulong)data.Properties["PercentDiskWriteTime"].Value;
ulong valueBase = (ulong)data.Properties["PercentDiskWriteTime_Base"].Value;
_perfWrite.Update(value, valueBase);
@@ -216,7 +213,6 @@ namespace LibreHardwareMonitor.Hardware.Storage
if (!DriveInfos[i].IsReady)
continue;
try
{
totalSize += DriveInfos[i].TotalSize;
@@ -253,7 +249,6 @@ namespace LibreHardwareMonitor.Hardware.Storage
if (!di.IsReady)
continue;
try
{
r.AppendLine("Logical Drive Name: " + di.Name);