# HG changeset patch # User moel.mich # Date 1266432507 0 # Node ID eb04985b7b6a9406db6e09e75abd8b62d52507e3 # Parent 1d02fde1bb23710d842df1854ce1e74a11d2af54 Added additional SMART temperature attributes. diff -r 1d02fde1bb23 -r eb04985b7b6a Hardware/HDD/HDDGroup.cs --- a/Hardware/HDD/HDDGroup.cs Tue Feb 16 21:44:25 2010 +0000 +++ b/Hardware/HDD/HDDGroup.cs Wed Feb 17 18:48:27 2010 +0000 @@ -67,12 +67,24 @@ 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)); diff -r 1d02fde1bb23 -r eb04985b7b6a Hardware/HDD/SMART.cs --- a/Hardware/HDD/SMART.cs Tue Feb 16 21:44:25 2010 +0000 +++ b/Hardware/HDD/SMART.cs Wed Feb 17 18:48:27 2010 +0000 @@ -67,13 +67,15 @@ 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)] diff -r 1d02fde1bb23 -r eb04985b7b6a Properties/AssemblyInfo.cs --- a/Properties/AssemblyInfo.cs Tue Feb 16 21:44:25 2010 +0000 +++ b/Properties/AssemblyInfo.cs Wed Feb 17 18:48:27 2010 +0000 @@ -69,5 +69,5 @@ // 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")]