1.1 --- a/Hardware/HDD/SSDIntel.cs Wed Jul 25 15:33:16 2012 +0000
1.2 +++ b/Hardware/HDD/SSDIntel.cs Wed Jul 25 16:03:36 2012 +0000
1.3 @@ -10,9 +10,11 @@
1.4
1.5 */
1.6
1.7 +using System.Collections.Generic;
1.8 +using OpenHardwareMonitor.Collections;
1.9 +
1.10 namespace OpenHardwareMonitor.Hardware.HDD {
1.11 - using System.Collections.Generic;
1.12 -
1.13 +
1.14 [NamePrefix("INTEL SSD"),
1.15 RequireSmart(0xE1), RequireSmart(0xE8), RequireSmart(0xE9)]
1.16 internal class SSDIntel : AbstractHarddrive {
1.17 @@ -32,16 +34,19 @@
1.18 new SmartAttribute(0xB8, SmartNames.EndToEndError),
1.19 new SmartAttribute(0xC0, SmartNames.UnsafeShutdownCount),
1.20 new SmartAttribute(0xE1, SmartNames.HostWrites,
1.21 - (byte[] r, byte v) => { return RawToInt(r, v) / 0x20; },
1.22 + (byte[] r, byte v, IReadOnlyArray<IParameter> p)
1.23 + => { return RawToInt(r, v, p) / 0x20; },
1.24 SensorType.Data, 0),
1.25 new SmartAttribute(0xE8, SmartNames.RemainingLife,
1.26 null, SensorType.Level, 0),
1.27 new SmartAttribute(0xE9, SmartNames.MediaWearOutIndicator),
1.28 new SmartAttribute(0xF1, SmartNames.HostWrites,
1.29 - (byte[] r, byte v) => { return RawToInt(r, v) / 0x20; },
1.30 + (byte[] r, byte v, IReadOnlyArray<IParameter> p)
1.31 + => { return RawToInt(r, v, p) / 0x20; },
1.32 SensorType.Data, 0),
1.33 new SmartAttribute(0xF2, SmartNames.HostReads,
1.34 - (byte[] r, byte v) => { return RawToInt(r, v) / 0x20; },
1.35 + (byte[] r, byte v, IReadOnlyArray<IParameter> p)
1.36 + => { return RawToInt(r, v, p) / 0x20; },
1.37 SensorType.Data, 1),
1.38 };
1.39