From d303ade10141f99a372e9b379ff905e5dfc9e500 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 28 Jan 2015 19:07:29 +0100 Subject: [PATCH] Reduce the precision of SMART data point We don't need so many digits... --- cmdline/device.c | 64 ++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/cmdline/device.c b/cmdline/device.c index 85b020b7..1bef7933 100644 --- a/cmdline/device.c +++ b/cmdline/device.c @@ -34,63 +34,63 @@ struct afr_point { static struct afr_point AFR_5[] = { { 0, 0 }, - { 1, 0.027432608477803388 }, - { 4, 0.07501976284584981 }, - { 16, 0.23589260654405794 }, - { 70, 0.36193219378600433 }, - { 260, 0.5676621428968173 }, - { 1100, 1.5028253400346423 }, - { 4500, 2.0659987547404763 }, - { 17000, 1.7755385684503124 }, + { 1, 0.0274 }, + { 4, 0.0750 }, + { 16, 0.235 }, + { 70, 0.361 }, + { 260, 0.567 }, + { 1100, 1.50 }, + { 4500, 2.06 }, + { 17000, 1.77 }, { 0, 0 } }; static struct afr_point AFR_187[] = { { 0, 0 }, - { 1, 0.33877621175661743 }, - { 3, 0.5014425058387142 }, - { 11, 0.5346094598348444 }, - { 20, 0.8428063943161636 }, - { 35, 1.4429071005017484 }, - { 65, 1.6190935390549661 }, + { 1, 0.338 }, + { 3, 0.501 }, + { 11, 0.534 }, + { 20, 0.842 }, + { 35, 1.44 }, + { 65, 1.61 }, { 0, 0 } }; static struct afr_point AFR_188[] = { { 0, 0 }, - { 1, 0.10044174089362015 }, - { 13000000000ULL, 0.334030592234279 }, - { 26000000000ULL, 0.36724705400842445 }, + { 1, 0.100 }, + { 13000000000ULL, 0.334 }, + { 26000000000ULL, 0.367 }, { 0, 0 } }; static struct afr_point AFR_193[] = { { 0, 0 }, - { 1300, 0.024800489215129725 }, - { 5500, 0.05859661417772557 }, - { 21000, 0.19566577603409208 }, - { 90000, 0.2673688205712117 }, + { 1300, 0.0248 }, + { 5500, 0.0585 }, + { 21000, 0.195 }, + { 90000, 0.267 }, { 0, 0 } }; static struct afr_point AFR_197[] = { { 0, 0 }, - { 1, 0.34196613799103254 }, - { 2, 0.6823772508117681 }, - { 16, 0.9564879341127684 }, - { 40, 1.6519989942167461 }, - { 100, 2.5137741046831956 }, - { 250, 3.3203378817413904 }, + { 1, 0.341 }, + { 2, 0.682 }, + { 16, 0.956 }, + { 40, 1.65 }, + { 100, 2.51 }, + { 250, 3.32 }, { 0, 0 } }; static struct afr_point AFR_198[] = { { 0, 0 }, - { 1, 0.8135764944275583 }, - { 2, 1.1173469387755102 }, - { 4, 1.3558692421991083 }, - { 10, 1.7464114832535886 }, - { 12, 2.6449275362318843 }, + { 1, 0.813 }, + { 2, 1.11 }, + { 4, 1.35 }, + { 10, 1.74 }, + { 12, 2.64 }, { 0, 0 } };