From ff28bc711cf9ae7c9a0ac3ab1641de7a92c23e9a Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 30 Apr 2015 21:43:01 +0200 Subject: [PATCH] Recompute the SMART 193 table using a limit of 98% This avoid to compute a very high failure rate for very high values of the 193 attribute. --- cmdline/device.c | 106 +++++++++++++++++++++++------------------------ 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/cmdline/device.c b/cmdline/device.c index 970f5850..0cca45d2 100644 --- a/cmdline/device.c +++ b/cmdline/device.c @@ -244,65 +244,65 @@ static double SMART_188_R[SMART_MEASURES] = { /* * Divider for SMART attribute 193 */ -static unsigned SMART_193_STEP = 1626; +static unsigned SMART_193_STEP = 649; /* * Failure rate for 30 days, for a disk * with SMART attribute 193 at a given value. */ static double SMART_193_R[SMART_MEASURES] = { - 0.0000, 0.0029, 0.0033, 0.0040, 0.0046, - 0.0051, 0.0059, 0.0065, 0.0073, 0.0080, - 0.0088, 0.0096, 0.0104, 0.0112, 0.0117, - 0.0125, 0.0132, 0.0139, 0.0149, 0.0158, - 0.0167, 0.0172, 0.0179, 0.0189, 0.0202, - 0.0216, 0.0226, 0.0242, 0.0253, 0.0264, - 0.0279, 0.0293, 0.0306, 0.0319, 0.0330, - 0.0345, 0.0356, 0.0370, 0.0388, 0.0410, - 0.0426, 0.0445, 0.0463, 0.0475, 0.0487, - 0.0499, 0.0513, 0.0530, 0.0548, 0.0565, - 0.0585, 0.0606, 0.0627, 0.0644, 0.0663, - 0.0683, 0.0711, 0.0735, 0.0765, 0.0790, - 0.0812, 0.0837, 0.0862, 0.0882, 0.0911, - 0.0941, 0.0970, 0.0993, 0.1026, 0.1063, - 0.1094, 0.1129, 0.1162, 0.1191, 0.1221, - 0.1256, 0.1281, 0.1315, 0.1347, 0.1386, - 0.1420, 0.1446, 0.1475, 0.1501, 0.1533, - 0.1568, 0.1600, 0.1634, 0.1678, 0.1718, - 0.1750, 0.1788, 0.1818, 0.1848, 0.1875, - 0.1901, 0.1930, 0.1961, 0.1996, 0.2025, - 0.2055, 0.2087, 0.2115, 0.2145, 0.2171, - 0.2203, 0.2234, 0.2265, 0.2300, 0.2331, - 0.2364, 0.2392, 0.2419, 0.2450, 0.2494, - 0.2535, 0.2571, 0.2605, 0.2643, 0.2690, - 0.2738, 0.2781, 0.2828, 0.2863, 0.2910, - 0.2947, 0.2995, 0.3026, 0.3065, 0.3118, - 0.3169, 0.3234, 0.3284, 0.3331, 0.3376, - 0.3405, 0.3447, 0.3484, 0.3517, 0.3557, - 0.3595, 0.3635, 0.3681, 0.3750, 0.3824, - 0.3897, 0.3988, 0.4070, 0.4143, 0.4206, - 0.4255, 0.4310, 0.4360, 0.4411, 0.4456, - 0.4500, 0.4544, 0.4597, 0.4643, 0.4695, - 0.4740, 0.4791, 0.4839, 0.4891, 0.4940, - 0.4981, 0.5028, 0.5077, 0.5124, 0.5175, - 0.5224, 0.5275, 0.5334, 0.5385, 0.5435, - 0.5493, 0.5544, 0.5598, 0.5670, 0.5739, - 0.5794, 0.5840, 0.5890, 0.5945, 0.6000, - 0.6060, 0.6113, 0.6201, 0.6258, 0.6350, - 0.6404, 0.6459, 0.6518, 0.6579, 0.6659, - 0.6736, 0.6817, 0.6891, 0.6988, 0.7076, - 0.7168, 0.7257, 0.7354, 0.7435, 0.7547, - 0.7651, 0.7780, 0.7892, 0.7977, 0.8093, - 0.8200, 0.8280, 0.8356, 0.8495, 0.8576, - 0.8695, 0.8799, 0.8914, 0.8997, 0.9079, - 0.9162, 0.9283, 0.9368, 0.9475, 0.9568, - 0.9660, 0.9737, 0.9815, 0.9898, 0.9988, - 1.0075, 1.0165, 1.0256, 1.0338, 1.0422, - 1.0533, 1.0653, 1.0760, 1.0853, 1.0975, - 1.1075, 1.1172, 1.1291, 1.1414, 1.1561, - 1.1666, 1.1798, 1.1940, 1.2073, 1.2189, - 1.2324, 1.2436, 1.2557, 1.2699, 1.2811, - 1.2945, + 0.0000, 0.0014, 0.0027, 0.0030, 0.0031, + 0.0033, 0.0036, 0.0038, 0.0041, 0.0043, + 0.0046, 0.0048, 0.0050, 0.0053, 0.0056, + 0.0058, 0.0060, 0.0064, 0.0067, 0.0069, + 0.0073, 0.0076, 0.0079, 0.0082, 0.0085, + 0.0088, 0.0091, 0.0094, 0.0097, 0.0100, + 0.0104, 0.0107, 0.0110, 0.0113, 0.0115, + 0.0117, 0.0120, 0.0123, 0.0126, 0.0129, + 0.0131, 0.0134, 0.0138, 0.0141, 0.0144, + 0.0149, 0.0153, 0.0156, 0.0159, 0.0162, + 0.0166, 0.0168, 0.0171, 0.0173, 0.0176, + 0.0179, 0.0183, 0.0186, 0.0191, 0.0196, + 0.0202, 0.0207, 0.0213, 0.0217, 0.0221, + 0.0225, 0.0233, 0.0238, 0.0243, 0.0247, + 0.0252, 0.0257, 0.0261, 0.0265, 0.0271, + 0.0278, 0.0284, 0.0290, 0.0294, 0.0298, + 0.0304, 0.0310, 0.0316, 0.0321, 0.0325, + 0.0329, 0.0334, 0.0340, 0.0346, 0.0351, + 0.0355, 0.0359, 0.0365, 0.0372, 0.0379, + 0.0387, 0.0395, 0.0405, 0.0413, 0.0419, + 0.0424, 0.0432, 0.0440, 0.0447, 0.0455, + 0.0461, 0.0467, 0.0471, 0.0476, 0.0481, + 0.0486, 0.0490, 0.0495, 0.0500, 0.0505, + 0.0512, 0.0518, 0.0524, 0.0532, 0.0540, + 0.0545, 0.0552, 0.0559, 0.0566, 0.0574, + 0.0582, 0.0592, 0.0601, 0.0607, 0.0616, + 0.0623, 0.0631, 0.0639, 0.0646, 0.0654, + 0.0661, 0.0668, 0.0677, 0.0685, 0.0696, + 0.0707, 0.0717, 0.0727, 0.0737, 0.0749, + 0.0759, 0.0773, 0.0783, 0.0791, 0.0800, + 0.0809, 0.0819, 0.0829, 0.0839, 0.0847, + 0.0858, 0.0867, 0.0876, 0.0884, 0.0895, + 0.0906, 0.0919, 0.0931, 0.0943, 0.0954, + 0.0966, 0.0976, 0.0985, 0.0995, 0.1009, + 0.1021, 0.1038, 0.1051, 0.1065, 0.1076, + 0.1090, 0.1106, 0.1119, 0.1130, 0.1146, + 0.1158, 0.1168, 0.1181, 0.1193, 0.1206, + 0.1216, 0.1227, 0.1241, 0.1257, 0.1268, + 0.1277, 0.1289, 0.1302, 0.1316, 0.1329, + 0.1341, 0.1355, 0.1372, 0.1387, 0.1400, + 0.1415, 0.1427, 0.1438, 0.1447, 0.1458, + 0.1470, 0.1480, 0.1491, 0.1502, 0.1517, + 0.1528, 0.1539, 0.1555, 0.1568, 0.1583, + 0.1594, 0.1606, 0.1618, 0.1635, 0.1649, + 0.1665, 0.1686, 0.1700, 0.1719, 0.1731, + 0.1743, 0.1755, 0.1777, 0.1788, 0.1802, + 0.1812, 0.1824, 0.1835, 0.1848, 0.1859, + 0.1869, 0.1880, 0.1890, 0.1901, 0.1913, + 0.1926, 0.1935, 0.1948, 0.1960, 0.1977, + 0.1989, 0.2001, 0.2013, 0.2024, 0.2036, + 0.2049, 0.2062, 0.2074, 0.2087, 0.2099, + 0.2111, }; /*