projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84489e6
)
src/plugin.c: Automatically set vl->interval to interval_g if (vl->interval <= 0).
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sun, 29 Mar 2009 12:35:53 +0000
(14:35 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sun, 29 Mar 2009 12:35:53 +0000
(14:35 +0200)
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
7a89508
..
31031d0
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-1165,6
+1165,9
@@
int plugin_dispatch_values (value_list_t *vl)
if (vl->time == 0)
vl->time = time (NULL);
+ if (vl->interval <= 0)
+ vl->interval = interval_g;
+
DEBUG ("plugin_dispatch_values: time = %u; interval = %i; "
"host = %s; "
"plugin = %s; plugin_instance = %s; "