[lm-sensors] [PATCH resend] sensors: Add support for additional attributes to the sensors command
Jean Delvare
khali at linux-fr.org
Wed Mar 16 09:16:35 CET 2011
On Tue, 15 Mar 2011 15:54:15 -0700, Guenter Roeck wrote:
> On Tue, Mar 15, 2011 at 05:50:46PM -0400, Jean Delvare wrote:
> > Apparently our unit selection algorithm picks the smallest unit if
> > value is 0? Wouldn't it make more sense to pick the base unit instead
> > (W in this case)?
> >
> I'll add
> if (abs_value == 0) {
> *prefixstr = "";
> return;
> }
> to the beginning of scale_value(). Seems to be the easiest fix.
Agreed, that's what I had in mind too.
--
Jean Delvare
More information about the lm-sensors
mailing list