From: Florian Forster Date: Sat, 13 Jan 2007 17:21:22 +0000 (+0100) Subject: src/plugin.[ch]: Include the time in the value list. X-Git-Tag: collectd-4.0.0~241 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=a2728d7743e5ce61cf3ce31f75c9dba2f0a7ec00 src/plugin.[ch]: Include the time in the value list. This is necessary when we will implement caching in the future. --- diff --git a/src/plugin.c b/src/plugin.c index 2cf59684..857643d0 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -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) { diff --git a/src/plugin.h b/src/plugin.h index a2df0692..83818718 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -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];