Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2009 21:14:57 +0900
From:      Hajimu UMEMOTO <ume@freebsd.org>
To:        Ian Smith <smithi@nimnet.asn.au>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: ACPI temperature
Message-ID:  <ygek4w6nfi6.wl%ume@mahoroba.org>
In-Reply-To: <20091210031620.V12012@sola.nimnet.asn.au>
References:  <200912042337.04403.freebsd@insightbb.com> <20091208041000.1d2f75f8.taku@tackymt.homeip.net> <ygemy1th1q0.wl%ume@mahoroba.org> <20091209120838.C12012@sola.nimnet.asn.au> <ygeljhcgyzh.wl%ume@mahoroba.org> <20091210031620.V12012@sola.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Sorry for my late reply.

>>>>> On Thu, 10 Dec 2009 03:27:21 +1100 (EST)
>>>>> Ian Smith <smithi@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@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygek4w6nfi6.wl%ume>