src/plugin.c: Automatically set vl->interval to interval_g if (vl->interval <= 0).
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 29 Mar 2009 12:35:53 +0000 (14:35 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 29 Mar 2009 12:35:53 +0000 (14:35 +0200)
src/plugin.c

index 7a89508..31031d0 100644 (file)
@@ -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; "