All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH] Display 3 decimal places in raw sensors output
@ 2010-11-02 12:26 Jean Delvare
  2010-11-02 14:05 ` [lm-sensors] [PATCH] Display 3 decimal places in raw sensors Guenter Roeck
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jean Delvare @ 2010-11-02 12:26 UTC (permalink / raw)
  To: lm-sensors

I would like the raw output of "sensors" to display 3 decimal places
as most sensor types use at the sysfs interface. This will make it
easier for us to help users find out correct scaling factors when
needed. Instead of telling them to go read the raw sysfs attributes,
they can just report the output of "sensors -u -c /dev/null".

Objection anyone?
---
 prog/sensors/chips.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- lm-sensors.orig/prog/sensors/chips.c	2010-07-01 14:33:21.000000000 +0200
+++ lm-sensors/prog/sensors/chips.c	2010-11-02 13:24:12.000000000 +0100
@@ -58,7 +58,7 @@ void print_chip_raw(const sensors_chip_n
 						sub->name,
 						sensors_strerror(err));
 				else
-					printf("  %s: %.2f\n", sub->name, val);
+					printf("  %s: %.3f\n", sub->name, val);
 			} else
 				printf("(%s)\n", label);
 		}


-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] [PATCH] Display 3 decimal places in raw sensors
  2010-11-02 12:26 [lm-sensors] [PATCH] Display 3 decimal places in raw sensors output Jean Delvare
@ 2010-11-02 14:05 ` Guenter Roeck
  2010-11-02 18:41 ` Jeff Rickman
  2010-11-02 22:07 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2010-11-02 14:05 UTC (permalink / raw)
  To: lm-sensors

On Tue, Nov 02, 2010 at 08:26:44AM -0400, Jean Delvare wrote:
> I would like the raw output of "sensors" to display 3 decimal places
> as most sensor types use at the sysfs interface. This will make it
> easier for us to help users find out correct scaling factors when
> needed. Instead of telling them to go read the raw sysfs attributes,
> they can just report the output of "sensors -u -c /dev/null".
> 
> Objection anyone?

No objection. Makes sense to me.

Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] [PATCH] Display 3 decimal places in raw sensors
  2010-11-02 12:26 [lm-sensors] [PATCH] Display 3 decimal places in raw sensors output Jean Delvare
  2010-11-02 14:05 ` [lm-sensors] [PATCH] Display 3 decimal places in raw sensors Guenter Roeck
@ 2010-11-02 18:41 ` Jeff Rickman
  2010-11-02 22:07 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Jeff Rickman @ 2010-11-02 18:41 UTC (permalink / raw)
  To: lm-sensors

> I would like the raw output of "sensors" to display 3 decimal places
> as most sensor types use at the sysfs interface. This will make it
> easier for us to help users find out correct scaling factors when
> needed. Instead of telling them to go read the raw sysfs attributes,
> they can just report the output of "sensors -u -c /dev/null".
>
> Objection anyone?
> ---
>  prog/sensors/chips.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- lm-sensors.orig/prog/sensors/chips.c	2010-07-01 14:33:21.000000000
> +0200
> +++ lm-sensors/prog/sensors/chips.c	2010-11-02 13:24:12.000000000 +0100
> @@ -58,7 +58,7 @@ void print_chip_raw(const sensors_chip_n
>  						sub->name,
>  						sensors_strerror(err));
>  				else
> -					printf("  %s: %.2f\n", sub->name, val);
> +					printf("  %s: %.3f\n", sub->name, val);
>  			} else
>  				printf("(%s)\n", label);
>  		}
>
>
> --
> Jean Delvare
>

No objection to the concept. I appreciate the precision.



_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] [PATCH] Display 3 decimal places in raw sensors
  2010-11-02 12:26 [lm-sensors] [PATCH] Display 3 decimal places in raw sensors output Jean Delvare
  2010-11-02 14:05 ` [lm-sensors] [PATCH] Display 3 decimal places in raw sensors Guenter Roeck
  2010-11-02 18:41 ` Jeff Rickman
@ 2010-11-02 22:07 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2010-11-02 22:07 UTC (permalink / raw)
  To: lm-sensors

On Tue, 2 Nov 2010 13:41:06 -0500 (CDT), Jeff Rickman wrote:
> > I would like the raw output of "sensors" to display 3 decimal places
> > as most sensor types use at the sysfs interface. This will make it
> > easier for us to help users find out correct scaling factors when
> > needed. Instead of telling them to go read the raw sysfs attributes,
> > they can just report the output of "sensors -u -c /dev/null".
> >
> > Objection anyone?
> > ---
> >  prog/sensors/chips.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- lm-sensors.orig/prog/sensors/chips.c	2010-07-01 14:33:21.000000000
> > +0200
> > +++ lm-sensors/prog/sensors/chips.c	2010-11-02 13:24:12.000000000 +0100
> > @@ -58,7 +58,7 @@ void print_chip_raw(const sensors_chip_n
> >  						sub->name,
> >  						sensors_strerror(err));
> >  				else
> > -					printf("  %s: %.2f\n", sub->name, val);
> > +					printf("  %s: %.3f\n", sub->name, val);
> >  			} else
> >  				printf("(%s)\n", label);
> >  		}
> >
> >
> > --
> > Jean Delvare
> >
> 
> No objection to the concept. I appreciate the precision.

OK, I'll apply the patch tomorrow then.

Jeff, I take the opportunity to let you know that I am unable to e-mail
you directly. Your mail server keeps rejecting my attempts, and it has
been that way for months. I even tried an alternative sending server on
my end but it did not help.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-02 22:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-02 12:26 [lm-sensors] [PATCH] Display 3 decimal places in raw sensors output Jean Delvare
2010-11-02 14:05 ` [lm-sensors] [PATCH] Display 3 decimal places in raw sensors Guenter Roeck
2010-11-02 18:41 ` Jeff Rickman
2010-11-02 22:07 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.