Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2010 21:54:18 +0200
From:      Andreas Tobler <andreast-list@fgznet.ch>
To:        Ed Schouten <ed@80386.nl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: sysctl question
Message-ID:  <4C3CC46A.8080607@fgznet.ch>
In-Reply-To: <20100713084817.GU1742@hoeg.nl>
References:  <4C3B783D.5050200@fgznet.ch> <20100713084817.GU1742@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13.07.10 10:48, Ed Schouten wrote:
> * Andreas Tobler<andreast-list@fgznet.ch>  wrote:
>> But now I wonder how can I teach the sysctl to print my tempreature
>> the same way as my userland app does.
>
> I seem to remember all the other temperature sensors expose their value
> using tenth Kelvin precision. There is some kind of modifier you can add
> to the SYSCTL_INT declaration to denote that it's a temperature value.
> The sysctl(8) code on HEAD seems to suggest the type is "IK".

Thanks Ed!

I need to figure out how to format my temperature value to fit with this 
modifier.

Regards,
Andreas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C3CC46A.8080607>