projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b366118
)
src/plugin.c: Ensure that `wait_time' is at least `interval_g'.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 9 Apr 2007 10:57:05 +0000
(12:57 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 9 Apr 2007 10:57:05 +0000
(12:57 +0200)
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
c927522
..
3363650
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-186,6
+186,8
@@
static void *plugin_read_thread (void *args)
if (status != 0)
{
+ if (rf->wait_time < interval_g)
+ rf->wait_time = interval_g;
rf->wait_left = rf->wait_time;
rf->wait_time = rf->wait_time * 2;
if (rf->wait_time > 86400)
@@
-500,8
+502,9
@@
void plugin_init_all (void)
{
ERROR ("Initialization of plugin `%s' "
"failed with status %i. "
- "Plugin will be unloaded.
TODO!
",
+ "Plugin will be unloaded.",
le->key, status);
+ /* FIXME: Unload _all_ functions */
plugin_unregister_read (le->key);
}