ad90073a96
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17847 3c298f89-4303-0410-b956-a3cf2f4a3e73
26 lines
546 B
Diff
26 lines
546 B
Diff
--- a/src/rrdtool.c
|
|
+++ b/src/rrdtool.c
|
|
@@ -87,6 +87,7 @@ static const char *config_keys[] =
|
|
"HeartBeat",
|
|
"RRARows",
|
|
"RRATimespan",
|
|
+ "RRASingle",
|
|
"XFF"
|
|
};
|
|
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
|
|
@@ -1077,6 +1078,14 @@ static int rrd_config (const char *key,
|
|
}
|
|
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);
|