rrdtool plugin: Correctly initialize the ->random_variation member.
authorFlorian Forster <octo@huhu.verplant.org>
Mon, 4 Jan 2010 22:52:54 +0000 (23:52 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 4 Jan 2010 22:52:54 +0000 (23:52 +0100)
This lead to huge negative values in that member, causing values to be only
written to upon exit. D'oh!

src/rrdtool.c

index ee5d70c..ed1ced1 100644 (file)
@@ -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;
        }