From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 29 13:38:46 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 B7EF81065670; Tue, 29 Dec 2009 13:38:46 +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 2CA368FC16; Tue, 29 Dec 2009 13:38:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id nBTDcidG011578; Wed, 30 Dec 2009 00:38:44 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 30 Dec 2009 00:38:43 +1100 (EST) From: Ian Smith To: Hajimu UMEMOTO In-Reply-To: Message-ID: <20091229234000.D81420@sola.nimnet.asn.au> References: <200912042337.04403.freebsd@insightbb.com> <20091208041000.1d2f75f8.taku@tackymt.homeip.net> <20091209120838.C12012@sola.nimnet.asn.au> <20091210031620.V12012@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: Tue, 29 Dec 2009 13:38:46 -0000 On Tue, 29 Dec 2009, Hajimu UMEMOTO wrote: > Hi, > > Sorry for my late reply. Hi, no worries, I'd forgotten about it :) > >>>>> On Thu, 10 Dec 2009 03:27:21 +1100 (EST) > >>>>> Ian Smith 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. Printing the integer sounds good, it's the internal unit as you say, but then the 'K' unit seems misleading? Would 'deciKelvin' be the correct unit for a tenth of a degree K? 'dK' maybe? I'm probably being way too fussy, but 'C' and 'F' denote degrees so usually 'K' may be assumed to denote degrees also. Not a big deal! > http://www.imasy.org/~ume/ Did some of your passive cooling code there get committed? Respect, Ian