Added additional SMART temperature attributes.

This commit is contained in:
Michael Möller
2010-02-17 18:48:27 +00:00
parent b43e33cb4f
commit fb418a9c1c
3 changed files with 19 additions and 5 deletions
+14 -2
View File
@@ -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));
+3 -1
View File
@@ -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)]
+2 -2
View File
@@ -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")]