From 6ba1a320cc3ee1c133eaf733ab8fd67b5b247115 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 12 Oct 2007 18:35:10 +0200 Subject: [PATCH] Beautifying some more debug messages.. --- src/network.c | 2 -- src/rrdtool.c | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/network.c b/src/network.c index c81d7110..21b96940 100644 --- a/src/network.c +++ b/src/network.c @@ -1107,8 +1107,6 @@ static int add_to_buffer (char *buffer, int buffer_size, (uint64_t) vl->interval)) return (-1); vl_def->interval = vl->interval; - DEBUG ("network plugin: add_to_buffer: interval = %i", - (int) vl->interval); } if (strcmp (vl_def->plugin, vl->plugin) != 0) diff --git a/src/rrdtool.c b/src/rrdtool.c index 77d87166..9fc68728 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -722,8 +722,6 @@ static void rrd_cache_flush (int timeout) iter = avl_get_iterator (cache); while (avl_iterator_next (iter, (void *) &key, (void *) &rc) == 0) { - DEBUG ("key = %s; age = %i;", key, now - rc->first_value); - if (rc->flags == FLAG_QUEUED) continue; else if ((now - rc->first_value) < timeout) @@ -859,8 +857,10 @@ static int rrd_cache_insert (const char *filename, avl_insert (cache, cache_key, rc); } - DEBUG ("rrd_cache_insert (%s, %s, %u) = %p", filename, value, - (unsigned int) value_time, (void *) rc); + DEBUG ("rrdtool plugin: rrd_cache_insert: file = %s; " + "values_num = %i; age = %u;", + filename, rc->values_num, + rc->last_value - rc->first_value); if ((rc->last_value - rc->first_value) >= cache_timeout) { -- 2.30.2