ACPI temperature
Hajimu UMEMOTO
ume at freebsd.org
Tue Dec 29 12:15:09 UTC 2009
Hi,
Sorry for my late reply.
>>>>> On Thu, 10 Dec 2009 03:27:21 +1100 (EST)
>>>>> Ian Smith <smithi at nimnet.asn.au> said:
smithi> Ah, so then units are in tenths of a degree Kelvin? Any special reason
smithi> to prefer not showing it with printf("%.1fK", mv / 10); like the others?
Yes, units are in tenths of a degree Kelvin.
The kernel holds the value and the sysctl(2) returns it in tenths of a
degree Kelvin as integer. It is better having the option to not
convert the integer value to the float value, IMHO.
And, when the temperature value ends in neither "C" nor "F", sysctl(8)
accepts it in tenths of a degree Kelvin.
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
More information about the freebsd-acpi
mailing list