[packages] updated utils/collectd to 4.4.0
[openwrt/svn-archive/archive.git] / utils / collectd / patches / 100-rrdtool-add-rrasingle-option.patch
1 diff -ur collectd-4.4.0.orig/src/rrdtool.c collectd-4.4.0/src/rrdtool.c
2 --- collectd-4.4.0.orig/src/rrdtool.c 2008-05-22 21:05:58.000000000 +0200
3 +++ collectd-4.4.0/src/rrdtool.c 2008-05-22 21:08:11.000000000 +0200
4 @@ -87,6 +87,7 @@
5 "HeartBeat",
6 "RRARows",
7 "RRATimespan",
8 + "RRASingle",
9 "XFF"
10 };
11 static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
12 @@ -1077,6 +1078,14 @@
13 }
14 xff = tmp;
15 }
16 + else if (strcasecmp ("RRASingle", key) == 0)
17 + {
18 + if (strcasecmp("true", value) == 0)
19 + {
20 + rra_types_num = 1;
21 + NOTICE ("rrdtool plugin: RRASingle = true: creating only AVERAGE RRAs");
22 + }
23 + }
24 else
25 {
26 return (-1);
27 Nur in collectd-4.4.0/src: rrdtool.c~.