]> git.ipfire.org Git - thirdparty/libatasmart.git/commitdiff
don't look for reallocated-sector-count since some vendors seem to encode this differ...
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Apr 2009 21:28:47 +0000 (23:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Apr 2009 21:28:47 +0000 (23:28 +0200)
atasmart.c

index b8ff4a4cb945eda3f7029c52a858de7797e22a6c..9ca76abc062f6bed2041ee516e21ded592701158 100644 (file)
@@ -1692,8 +1692,7 @@ static void reallocated_cb(SkDisk *d, const SkSmartAttributeParsedData *a, struc
         if (a->pretty_unit != SK_SMART_ATTRIBUTE_UNIT_SECTORS)
                 return;
 
-        if (!strcmp(a->name, "reallocated-sector-count") ||
-            !strcmp(a->name, "reallocated-event-count")) {
+        if (!strcmp(a->name, "reallocated-sector-count")) {
 
                 if (!ah->found || a->pretty_value > *ah->value)
                         *ah->value = a->pretty_value;