From owner-freebsd-acpi@FreeBSD.ORG Wed Dec 9 16:25:54 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 417F2106566B; Wed, 9 Dec 2009 16:25:54 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id B35018FC13; Wed, 9 Dec 2009 16:25:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id nB9GRL4v014542; Thu, 10 Dec 2009 03:27:22 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 10 Dec 2009 03:27:21 +1100 (EST) From: Ian Smith To: Hajimu UMEMOTO In-Reply-To: Message-ID: <20091210031620.V12012@sola.nimnet.asn.au> References: <200912042337.04403.freebsd@insightbb.com> <20091208041000.1d2f75f8.taku@tackymt.homeip.net> <20091209120838.C12012@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org Subject: Re: ACPI temperature X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2009 16:25:54 -0000 On Wed, 9 Dec 2009, Hajimu UMEMOTO wrote: > Hi, > > >>>>> On Wed, 9 Dec 2009 12:16:49 +1100 (EST) > >>>>> Ian Smith 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 :)