X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdtool.c;h=3d5ad9b90ff3a77afd90305e50ee27709fdf93af;hb=9d9678b9e753ea0936612021f4f87f8092ab4e31;hp=c63db52ee802cd15c610f1cc92825ddaa2dc5539;hpb=6159b6f81403b90eb2b1f1c60fa8006cd3405d1b;p=collectd.git diff --git a/src/rrdtool.c b/src/rrdtool.c index c63db52e..3d5ad9b9 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -110,7 +110,7 @@ static rrdcreate_config_t rrdcreate_config = * ALWAYS lock `cache_lock' first! */ static cdtime_t cache_timeout = 0; static cdtime_t cache_flush_timeout = 0; -static cdtime_t random_timeout = TIME_T_TO_CDTIME_T (1); +static cdtime_t random_timeout = TIME_T_TO_CDTIME_T_STATIC (1); static cdtime_t cache_flush_last; static c_avl_tree_t *cache = NULL; static pthread_mutex_t cache_lock = PTHREAD_MUTEX_INITIALIZER; @@ -411,7 +411,7 @@ static void *rrd_queue_thread (void __attribute__((unused)) *data) pthread_mutex_unlock (&queue_lock); /* We now need the cache lock so the entry isn't updated while - * we make a copy of it's values */ + * we make a copy of its values */ pthread_mutex_lock (&cache_lock); status = c_avl_get (cache, queue_entry->filename, @@ -1229,7 +1229,7 @@ static int rrd_init (void) pthread_mutex_unlock (&cache_lock); status = plugin_thread_create (&queue_thread, /* attr = */ NULL, - rrd_queue_thread, /* args = */ NULL); + rrd_queue_thread, /* args = */ NULL, "rrdtool queue"); if (status != 0) { ERROR ("rrdtool plugin: Cannot create queue-thread.");