Fix bug when retrieving historical ATA SMART data
authorDavid Zeuthen <davidz@redhat.com>
Mon, 15 Jun 2009 19:51:54 +0000 (15:51 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 15 Jun 2009 19:51:54 +0000 (15:51 -0400)
src/devkit-disks-device.c

index 81280f8..dcff9fd 100644 (file)
@@ -7919,7 +7919,7 @@ devkit_disks_device_drive_ata_smart_get_historical_data_authorized_cb (DevkitDis
 {
         guint64                since   = *((guint64*) user_data_elements[0]);
         guint64                until   = *((guint64*) user_data_elements[1]);
-        guint64                spacing = *((guint64*) user_data_elements[1]);
+        guint64                spacing = *((guint64*) user_data_elements[2]);
         GPtrArray *array;
         DevkitDisksAtaSmartDb *db;