Hardware/HDD/HDD.cs
changeset 227 97757a798918
parent 218 194186efdde9
child 231 30f5a06f5d8a
     1.1 --- a/Hardware/HDD/HDD.cs	Sat Oct 16 18:26:47 2010 +0000
     1.2 +++ b/Hardware/HDD/HDD.cs	Sun Oct 17 08:21:33 2010 +0000
     1.3 @@ -77,7 +77,8 @@
     1.4        this.drive = drive;
     1.5        this.count = 0;
     1.6        this.lifeID = lifeID;
     1.7 -      this.lifeSensor = new Sensor("HDD", 0, SensorType.Level, this, settings);
     1.8 +      this.lifeSensor = new Sensor("Remaining life", 0, SensorType.Level,
     1.9 +        this, settings);
    1.10  
    1.11        Update();
    1.12      }
    1.13 @@ -136,7 +137,7 @@
    1.14            attributes.Exists(attr => (int)attr.ID == (int)lifeID))
    1.15          {
    1.16            lifeSensor.Value = attributes
    1.17 -            .Find(attr => (int)attr.ID == (int)temperatureID)
    1.18 +            .Find(attr => (int)attr.ID == (int)lifeID)
    1.19              .AttrValue;
    1.20          }
    1.21        } else {