only consider Prefail attibutes when checking for bad attributes
authorDavid Zeuthen <davidz@redhat.com>
Fri, 1 May 2009 21:54:12 +0000 (17:54 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 1 May 2009 21:54:12 +0000 (17:54 -0400)
src/devkit-disks-device.c

index 044a0bd..0036dac 100644 (file)
@@ -7167,7 +7167,7 @@ ata_smart_collect_attrs (SkDisk *d, const SkSmartAttributeParsedData *a, void *u
                                 15, raw_data,
                                 G_MAXUINT);
 
-        if (!a->good)
+        if (!a->good && a->good_valid && a->prefailure)
                 data->has_bad_attributes = TRUE;
 
         g_ptr_array_add (data->attributes, g_value_get_boxed (&elem));