From 2eb7e45a89603b22ad452d3f33018d8ddf372abb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 3 Apr 2009 19:23:20 +0200 Subject: fix parsing of power-on-minutes --- atasmart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atasmart.c b/atasmart.c index 96653f5..3068fa9 100644 --- a/atasmart.c +++ b/atasmart.c @@ -862,7 +862,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 = fourtyeight * 60 * 1000; + a->pretty_value = (((uint64_t) a->raw[0]) | (uint64_t) a->raw[1]) * 60 * 1000; else if (!strcmp(a->name, "power-on-seconds")) a->pretty_value = fourtyeight * 1000; else if (!strcmp(a->name, "power-on-half-minutes")) -- cgit