Code

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 7a89508c217d86c31e5a33b635581d11a4654595..31031d07c257869431efd2ce3bbc75729c38a904 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; "