From: Florian Forster Date: Mon, 4 Jan 2010 22:52:54 +0000 (+0100) Subject: rrdtool plugin: Correctly initialize the ->random_variation member. X-Git-Tag: collectd-4.8.3~5 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=0b4f63782617b308abf908fbb2fc7ec9afe039db;p=collectd.git rrdtool plugin: Correctly initialize the ->random_variation member. This lead to huge negative values in that member, causing values to be only written to upon exit. D'oh! --- diff --git a/src/rrdtool.c b/src/rrdtool.c index ee5d70c8..ed1ced1f 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -676,6 +676,7 @@ static int rrd_cache_insert (const char *filename, rc->values = NULL; rc->first_value = 0; rc->last_value = 0; + rc->random_variation = 0; rc->flags = FLAG_NONE; new_rc = 1; }