3 @@ -80,6 +80,7 @@ static const char *config_keys[] =
11 @@ -101,6 +102,8 @@ static rrdcreate_config_t rrdcreate_conf
12 /* timespans = */ NULL,
13 /* timespans_num = */ 0,
15 + /* rrasingle = */ 0,
17 /* consolidation_functions = */ NULL,
18 /* consolidation_functions_num = */ 0
20 @@ -1027,6 +1030,14 @@ static int rrd_config (const char *key,
24 + else if (strcasecmp ("RRASingle", key) == 0)
26 + if (IS_TRUE (value))
28 + rrdcreate_config.rrasingle = 1;
29 + NOTICE ("rrdtool plugin: RRASingle = true: creating only AVERAGE RRAs");
32 else if (strcasecmp ("XFF", key) == 0)
34 double tmp = atof (value);
35 --- a/src/utils_rrdcreate.c
36 +++ b/src/utils_rrdcreate.c
37 @@ -122,6 +122,9 @@ static int rra_get (char ***ret, const v
38 rts_num = rra_timespans_num;
44 rra_max = rts_num * rra_types_num;
46 if ((rra_def = (char **) malloc ((rra_max + 1) * sizeof (char *))) == NULL)
47 --- a/src/utils_rrdcreate.h
48 +++ b/src/utils_rrdcreate.h
49 @@ -36,6 +36,8 @@ struct rrdcreate_config_s
55 char **consolidation_functions;
56 size_t consolidation_functions_num;