Date: Thu, 10 Dec 2009 03:27:21 +1100 (EST) From: Ian Smith <smithi@nimnet.asn.au> To: Hajimu UMEMOTO <ume@freebsd.org> Cc: freebsd-acpi@freebsd.org Subject: Re: ACPI temperature Message-ID: <20091210031620.V12012@sola.nimnet.asn.au> In-Reply-To: <ygeljhcgyzh.wl%ume@mahoroba.org> 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>
index | next in thread | previous in thread | raw e-mail
On Wed, 9 Dec 2009, Hajimu UMEMOTO wrote:
> Hi,
>
> >>>>> On Wed, 9 Dec 2009 12:16:49 +1100 (EST)
> >>>>> Ian Smith <smithi@nimnet.asn.au> said:
>
> smithi> The maths looks right. But I don't understand what you mean here:
>
> smithi> +.It Fl k
> smithi> +Show temperature in Kelvin.
> smithi> +The value is decupled.
>
> smithi> That would be 'decoupled', but, The value is decoupled from what?
>
> Oops, I meant "The value is multiplied by 10".
+ if (mv < 0 || ik_unit == IK_KELVIN)
printf("%jd", mv);
+ else if (ik_unit == IK_FAHRENHEIT)
+ printf("%.1fF",
+ (mv - 2732.0) * 9 / 50 + 32.0);
else
printf("%.1fC", (mv - 2732.0) / 10);
Ah, so then units are in tenths of a degree Kelvin? Any special reason
to prefer not showing it with printf("%.1fK", mv / 10); like the others?
cheers, Ian (possibly jumping in out of my depth :)
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091210031620.V12012>
