From: Florian Forster Date: Sun, 29 Mar 2009 12:35:53 +0000 (+0200) Subject: src/plugin.c: Automatically set vl->interval to interval_g if (vl->interval <= 0). X-Git-Tag: collectd-4.7.0~72 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bbd99974ae93a3a970cf0e5b8265cf82c71d5de3;p=collectd.git src/plugin.c: Automatically set vl->interval to interval_g if (vl->interval <= 0). --- diff --git a/src/plugin.c b/src/plugin.c index 7a89508c..31031d07 100644 --- 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; "