From 0b4f63782617b308abf908fbb2fc7ec9afe039db Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 4 Jan 2010 23:52:54 +0100 Subject: [PATCH] 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! --- src/rrdtool.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2