src/plugin.[ch]: Include the time in the value list.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 13 Jan 2007 17:21:22 +0000 (18:21 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 13 Jan 2007 17:21:22 +0000 (18:21 +0100)
This is necessary when we will implement caching in the future.

src/plugin.c
src/plugin.h

index 2cf5968..857643d 100644 (file)
@@ -302,6 +302,13 @@ int plugin_dispatch_values (const char *name, const value_list_t *vl)
 
        ds = (data_set_t *) le->value;
 
+       DBG ("time = %u; host = %s; "
+                       "plugin = %s; plugin_instance = %s; "
+                       "type = %s; type_instance = %s;",
+                       (unsigned int) vl->time, vl->host,
+                       vl->plugin, vl->plugin_instance,
+                       ds->type, vl->type_instance);
+
        le = llist_head (list_write);
        while (le != NULL)
        {
index a2df069..8381871 100644 (file)
@@ -44,6 +44,7 @@ struct value_list_s
 {
        value_t *values;
        int      values_len;
+       time_t   time;
        char     host[DATA_MAX_NAME_LEN];
        char     plugin[DATA_MAX_NAME_LEN];
        char     plugin_instance[DATA_MAX_NAME_LEN];