sensors plugin: Simplify the reload machanism.
authorFlorian Forster <octo@huhu.verplant.org>
Wed, 13 Dec 2006 08:00:08 +0000 (09:00 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 13 Dec 2006 08:00:08 +0000 (09:00 +0100)
commit7751db6518466b1628382df68adc93c3b222f360
treed2096c9e94a58c55026bed381db85d068e5a872f
parent311617d858c47989373acab42fb7d4f45d4da756
sensors plugin: Simplify the reload machanism.

Instead of calling `stat' in the `read' function and then, eventually, calling
the reload stuff, just call the reload function every time and have it return
without doing anything if the config didn't change. This way the reload logic
is not in the read function.
src/sensors.c