From 2641d1907f49119b95b7a258fb44b3ef05ec231b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 6 Aug 2009 21:04:31 +0200 Subject: fix parsing of power-on-minutes --- atasmart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atasmart.c b/atasmart.c index 3dc47c1..543c211 100644 --- a/atasmart.c +++ b/atasmart.c @@ -1182,7 +1182,7 @@ static void make_pretty(SkSmartAttributeParsedData *a) { else if (!strcmp(a->name, "temperature-centi-celsius")) a->pretty_value = (fourtyeight & 0xFFFF)*100 + 273150; else if (!strcmp(a->name, "power-on-minutes")) - a->pretty_value = (((uint64_t) a->raw[0]) | (uint64_t) a->raw[1]) * 60 * 1000; + a->pretty_value = fourtyeight * 60 * 1000; else if (!strcmp(a->name, "power-on-seconds")) a->pretty_value = fourtyeight * 1000; else if (!strcmp(a->name, "power-on-half-minutes")) @@ -1363,7 +1363,7 @@ static const SkSmartQuirkDatabase quirk_database[] = { { "FUJITSU MHY2250BH" ")$", "^0085000B$", /* seems to be specific to this firmware */ - SK_SMART_QUIRK_9_UNKNOWN| + SK_SMART_QUIRK_9_POWERONMINUTES| SK_SMART_QUIRK_197_UNKNOWN| SK_SMART_QUIRK_198_UNKNOWN }, { -- cgit