projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cde03c1
)
rrdtool plugin: Correctly initialize the ->random_variation member.
author
Florian Forster
<octo@huhu.verplant.org>
Mon, 4 Jan 2010 22:52:54 +0000
(23:52 +0100)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/src/rrdtool.c
b/src/rrdtool.c
index
ee5d70c
..
ed1ced1
100644
(file)
--- 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;
}