From: Florian Forster Date: Sat, 21 Jun 2008 16:35:17 +0000 (+0200) Subject: src/rrdd.c: Actually pass the values to rrd_update_r. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f12d8ef6cc3a2094d4532a183305eef10f2c1d86;p=rrdd.git src/rrdd.c: Actually pass the values to rrd_update_r. --- diff --git a/src/rrdd.c b/src/rrdd.c index 23f4328..8aa5a58 100644 --- a/src/rrdd.c +++ b/src/rrdd.c @@ -122,6 +122,7 @@ static void *queue_thread_main (void *args) /* {{{ */ char *file; char **values; int values_num; + int status; int i; if (cache_queue_head == NULL) @@ -159,6 +160,14 @@ static void *queue_thread_main (void *args) /* {{{ */ RRDD_LOG (LOG_DEBUG, "queue_thread_main: rrd_update (%s, %i, %p)", file, values_num, (void *) values); + status = rrd_update_r (file, NULL, values_num, values); + if (status != 0) + { + RRDD_LOG (LOG_ERR, "queue_thread_main: " + "rrd_update_r failed with status %i.", + status); + } + free (file); for (i = 0; i < values_num; i++) free (values[i]);