packages/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch
cyrus 8066309098 [packages] updated utils/collectd to 4.4.0
created sub-packages for collectd-modules
thanks to Jo-Philipp Wich (#3456)


git-svn-id: svn://svn.openwrt.org/openwrt/packages@11257 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-24 16:24:27 +00:00

28 lines
684 B
Diff

diff -ur collectd-4.4.0.orig/src/rrdtool.c collectd-4.4.0/src/rrdtool.c
--- collectd-4.4.0.orig/src/rrdtool.c 2008-05-22 21:05:58.000000000 +0200
+++ collectd-4.4.0/src/rrdtool.c 2008-05-22 21:08:11.000000000 +0200
@@ -87,6 +87,7 @@
"HeartBeat",
"RRARows",
"RRATimespan",
+ "RRASingle",
"XFF"
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
@@ -1077,6 +1078,14 @@
}
xff = tmp;
}
+ else if (strcasecmp ("RRASingle", key) == 0)
+ {
+ if (strcasecmp("true", value) == 0)
+ {
+ rra_types_num = 1;
+ NOTICE ("rrdtool plugin: RRASingle = true: creating only AVERAGE RRAs");
+ }
+ }
else
{
return (-1);
Nur in collectd-4.4.0/src: rrdtool.c~.