Added additional SMART temperature attributes.
This commit is contained in:
@@ -67,12 +67,24 @@ namespace OpenHardwareMonitor.Hardware.HDD {
|
||||
continue;
|
||||
|
||||
int attribute = -1;
|
||||
for (int i = 0; i < attributes.Length; i++) {
|
||||
for (int i = 0; i < attributes.Length; i++)
|
||||
if (attributes[i].ID == SMART.AttributeID.Temperature) {
|
||||
attribute = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (attribute == -1)
|
||||
for (int i = 0; i < attributes.Length; i++)
|
||||
if (attributes[i].ID == SMART.AttributeID.DriveTemperature) {
|
||||
attribute = i;
|
||||
break;
|
||||
}
|
||||
if (attribute == -1)
|
||||
for (int i = 0; i < attributes.Length; i++)
|
||||
if (attributes[i].ID == SMART.AttributeID.AirflowTemperature)
|
||||
{
|
||||
attribute = i;
|
||||
break;
|
||||
}
|
||||
|
||||
if (attribute >= 0) {
|
||||
hardware.Add(new HDD(name, handle, drive, attribute));
|
||||
|
||||
@@ -67,13 +67,15 @@ namespace OpenHardwareMonitor.Hardware.HDD {
|
||||
RecalibrationRetries = 0x0B,
|
||||
PowerCycleCount = 0x0C,
|
||||
SoftReadErrorRate = 0x0D,
|
||||
AirflowTemperature = 0xBE,
|
||||
Temperature = 0xC2,
|
||||
HardwareECCRecovered = 0xC3,
|
||||
ReallocationEventCount = 0xC4,
|
||||
CurrentPendingSectorCount = 0xC5,
|
||||
UncorrectableSectorCount = 0xC6,
|
||||
UltraDMACRCErrorCount = 0xC7,
|
||||
WriteErrorRate = 0xC8
|
||||
WriteErrorRate = 0xC8,
|
||||
DriveTemperature = 0xE7
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
|
||||
@@ -69,5 +69,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.1.21.1")]
|
||||
[assembly: AssemblyFileVersion("0.1.21.1")]
|
||||
[assembly: AssemblyVersion("0.1.21.2")]
|
||||
[assembly: AssemblyFileVersion("0.1.21.2")]
|
||||
|
||||
Reference in New Issue
Block a user