diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-06 21:04:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-06 21:04:31 +0200 |
commit | 2641d1907f49119b95b7a258fb44b3ef05ec231b (patch) | |
tree | b2e53f592af2f1c55ab70cce9ddba5a05c978214 /atasmart.c | |
parent | 45321ec26080c32b4de1bae9d92e40c194cbee27 (diff) | |
download | libatasmart-2641d1907f49119b95b7a258fb44b3ef05ec231b.tar.gz |
fix parsing of power-on-minutes
Diffstat (limited to 'atasmart.c')
-rw-r--r-- | atasmart.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 }, { |