author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 13 Dec 2006 08:00:08 +0000 (09:00 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 13 Dec 2006 08:00:08 +0000 (09:00 +0100) | ||
commit | 7751db6518466b1628382df68adc93c3b222f360 | |
tree | d2096c9e94a58c55026bed381db85d068e5a872f | tree | snapshot |
parent | 311617d858c47989373acab42fb7d4f45d4da756 | commit | diff |
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.
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 | diff | blob | history |