diff -r e837e1e4b282 -r f837f9f0973e Hardware/HDD/SSDIntel.cs --- a/Hardware/HDD/SSDIntel.cs Sun Jan 01 17:12:34 2012 +0000 +++ b/Hardware/HDD/SSDIntel.cs Mon Jan 02 18:44:19 2012 +0000 @@ -47,27 +47,27 @@ private static readonly IEnumerable smartAttributes = new List { - new SmartAttribute(0x01, SmartAttributeNames.ReadErrorRate), - new SmartAttribute(0x03, SmartAttributeNames.SpinUpTime), - new SmartAttribute(0x04, SmartAttributeNames.StartStopCount, RawToInt), - new SmartAttribute(0x05, SmartAttributeNames.ReallocatedSectorsCount), - new SmartAttribute(0x09, SmartAttributeNames.PowerOnHours, RawToInt), - new SmartAttribute(0x0C, SmartAttributeNames.PowerCycleCount, RawToInt), - new SmartAttribute(0xAA, SmartAttributeNames.AvailableReservedSpace), - new SmartAttribute(0xAB, SmartAttributeNames.ProgramFailCount), - new SmartAttribute(0xAC, SmartAttributeNames.EraseFailCount), - new SmartAttribute(0xB8, SmartAttributeNames.EndToEndError), - new SmartAttribute(0xC0, SmartAttributeNames.UnsafeShutdownCount), - new SmartAttribute(0xE1, SmartAttributeNames.HostWrites, + new SmartAttribute(0x01, SmartNames.ReadErrorRate), + new SmartAttribute(0x03, SmartNames.SpinUpTime), + new SmartAttribute(0x04, SmartNames.StartStopCount, RawToInt), + new SmartAttribute(0x05, SmartNames.ReallocatedSectorsCount), + new SmartAttribute(0x09, SmartNames.PowerOnHours, RawToInt), + new SmartAttribute(0x0C, SmartNames.PowerCycleCount, RawToInt), + new SmartAttribute(0xAA, SmartNames.AvailableReservedSpace), + new SmartAttribute(0xAB, SmartNames.ProgramFailCount), + new SmartAttribute(0xAC, SmartNames.EraseFailCount), + new SmartAttribute(0xB8, SmartNames.EndToEndError), + new SmartAttribute(0xC0, SmartNames.UnsafeShutdownCount), + new SmartAttribute(0xE1, SmartNames.HostWrites, (byte[] r, byte v) => { return RawToInt(r, v) / 0x20; }, SensorType.Data, 0), - new SmartAttribute(0xE8, SmartAttributeNames.RemainingLife, + new SmartAttribute(0xE8, SmartNames.RemainingLife, null, SensorType.Level, 0), - new SmartAttribute(0xE9, SmartAttributeNames.MediaWearOutIndicator), - new SmartAttribute(0xF1, SmartAttributeNames.HostWrites, + new SmartAttribute(0xE9, SmartNames.MediaWearOutIndicator), + new SmartAttribute(0xF1, SmartNames.HostWrites, (byte[] r, byte v) => { return RawToInt(r, v) / 0x20; }, SensorType.Data, 0), - new SmartAttribute(0xF2, SmartAttributeNames.HostReads, + new SmartAttribute(0xF2, SmartNames.HostReads, (byte[] r, byte v) => { return RawToInt(r, v) / 0x20; }, SensorType.Data, 1), };