Hardware/HDD/SSDSandforce.cs
changeset 340 600962f8a298
parent 339 07a6126a4796
child 343 46b6b567f14f
     1.1 --- a/Hardware/HDD/SSDSandforce.cs	Mon Feb 13 21:56:29 2012 +0000
     1.2 +++ b/Hardware/HDD/SSDSandforce.cs	Tue Feb 14 23:07:55 2012 +0000
     1.3 @@ -55,8 +55,8 @@
     1.4        new SmartAttribute(0xB5, SmartNames.AlternativeProgramFailCount, RawToInt),
     1.5        new SmartAttribute(0xB6, SmartNames.AlternativeEraseFailCount, RawToInt),
     1.6        new SmartAttribute(0xBB, SmartNames.UncorrectableErrorCount, RawToInt),
     1.7 -      new SmartAttribute(0xC2, SmartNames.Temperature, 
     1.8 -        (byte[] raw, byte value) => { return value; }), 
     1.9 +      new SmartAttribute(0xC2, SmartNames.Temperature, (byte[] raw, byte value) 
    1.10 +        => { return value; }, SensorType.Temperature, 0, true), 
    1.11        new SmartAttribute(0xC3, SmartNames.UnrecoverableEcc), 
    1.12        new SmartAttribute(0xC4, SmartNames.ReallocationEventCount, RawToInt),
    1.13        new SmartAttribute(0xE7, SmartNames.RemainingLife, null, 
    1.14 @@ -78,7 +78,7 @@
    1.15        : base(smart, name, firmwareRevision,  index, smartAttributes, settings) 
    1.16      {
    1.17        this.writeAmplification = new Sensor("Write Amplification", 1, 
    1.18 -        SensorType.Level, this, settings);    
    1.19 +        SensorType.Factor, this, settings);    
    1.20      }
    1.21  
    1.22      public override void UpdateAdditionalSensors(DriveAttributeValue[] values) {
    1.23 @@ -92,7 +92,7 @@
    1.24            hostWritesToController = RawToInt(value.RawValue, value.AttrValue);
    1.25        }
    1.26        if (controllerWritesToNAND.HasValue && hostWritesToController.HasValue) {
    1.27 -        writeAmplification.Value = 100 *
    1.28 +        writeAmplification.Value = 
    1.29            controllerWritesToNAND.Value / hostWritesToController.Value;
    1.30          ActivateSensor(writeAmplification);
    1.31        }