sensors plugin: Fix initialization code.
authorHenrique de Moraes Holschuh <hmh@debian.org>
Sat, 16 Oct 2010 01:21:57 +0000 (22:21 -0300)
committerFlorian Forster <octo@collectd.org>
Tue, 21 Feb 2012 19:49:25 +0000 (20:49 +0100)
commit475906f5a5769b176aa7c1ad2ca06b58da95583c
tree55fcdc08e9f2788de4e9da9596e95ab0a3a45c21
parent4c11d055ca7fe770a65827f6274f963510a8eb96
sensors plugin: Fix initialization code.

Sensors often require scaling. Also, you often have to disable them, or name
them.

The libsensors config file provides all these facilities.  Without it, the
sensor plugin is mostly useless except for some values that are often already
properly scaled by the kernel (some temperatures, some fan tachometers).

In particular, it is utterly useless for voltage monitoring outside of the 3.3V
rails.

The plugin should either evaluate the libsensors config files at startup, or it
should provide facilities to give proper names and first-order polinomial
scaling+offset.

Change-Id: I97312bee5ca33fefe846a8cdc292818d46819574
Signed-off-by: Florian Forster <octo@collectd.org>
src/sensors.c