Re: temperature standard - global config option?

From: Chris Boot (bootc@worldnet.fr)
Date: Wed Jun 06 2001 - 11:06:56 EST


Hi,

> Please, don't.
>
> Use kelvins *0.1, and use them consistently everywhere. This is what
> ACPI does, and it is probably right.

I'm sorry, by I don't feel like adding 273 to every number I get just to
find the temperature of something. What I would do is give configuration
options to choose the default (Celsius/centigrade, Kelvin, or [shudder]
Fahrenheit) then, when you need to print or output a temperature, send it
off to a common converter function so you don't repeat core all over the
place.

Just my 0.02 Eurocents (what an ugly word).

-- 
Chris Boot
bootc@worldnet.fr

"Modem error handling really su~c%dk,s.^D^D&x@R*cCKo#?CB,*o#?C!!b %o#? NO CARRIER

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 07 2001 - 21:00:49 EST