Code

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 2cf59684bd9c910979dd8837656c23011c9e8c2b..857643d023452452ce5b2bf59a8e94230dfe7bbf 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 a2df069269f03f4155019013c9515b9fba258dc4..8381871892f56a198d35be014b41cc22f8ab3d06 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];