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