mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
collectd: update to 5.7.1
Update collectd to version 5.7.1 * replace 003-remove-werror.patch with configure option * remove 200-fix-git-describe-error.patch that is now unnecessary * reformat other patches due to whitespace changes * add new plugins to the list as disabled * correct download & homepage links * add myself as the second maintainer Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
@@ -1,40 +1,38 @@
|
||||
--- a/src/rrdtool.c
|
||||
+++ b/src/rrdtool.c
|
||||
@@ -82,6 +82,7 @@ static const char *config_keys[] =
|
||||
"HeartBeat",
|
||||
"RRARows",
|
||||
"RRATimespan",
|
||||
+ "RRASingle",
|
||||
"XFF",
|
||||
"WritesPerSecond",
|
||||
"RandomTimeout"
|
||||
@@ -103,6 +104,8 @@ static rrdcreate_config_t rrdcreate_conf
|
||||
/* timespans = */ NULL,
|
||||
/* timespans_num = */ 0,
|
||||
@@ -61,6 +61,7 @@ typedef struct rrd_queue_s rrd_queue_t;
|
||||
static const char *config_keys[] = {
|
||||
"CacheTimeout", "CacheFlush", "CreateFilesAsync", "DataDir",
|
||||
"StepSize", "HeartBeat", "RRARows", "RRATimespan",
|
||||
+ "RRASingle",
|
||||
"XFF", "WritesPerSecond", "RandomTimeout"};
|
||||
static int config_keys_num = STATIC_ARRAY_SIZE(config_keys);
|
||||
|
||||
+ /* rrasingle = */ 0,
|
||||
@@ -78,6 +79,8 @@ static rrdcreate_config_t rrdcreate_conf
|
||||
/* timespans = */ NULL,
|
||||
/* timespans_num = */ 0,
|
||||
|
||||
+ /* rrasingle = */ 0,
|
||||
+
|
||||
/* consolidation_functions = */ NULL,
|
||||
/* consolidation_functions_num = */ 0,
|
||||
/* consolidation_functions = */ NULL,
|
||||
/* consolidation_functions_num = */ 0,
|
||||
|
||||
@@ -1110,6 +1113,14 @@ static int rrd_config (const char *key,
|
||||
@@ -971,6 +974,12 @@ static int rrd_config(const char *key, c
|
||||
/* compar = */ rrd_compare_numeric);
|
||||
|
||||
free (value_copy);
|
||||
}
|
||||
+ else if (strcasecmp ("RRASingle", key) == 0)
|
||||
+ {
|
||||
free(value_copy);
|
||||
+ } else if (strcasecmp ("RRASingle", key) == 0) {
|
||||
+ if (IS_TRUE (value))
|
||||
+ {
|
||||
+ rrdcreate_config.rrasingle = 1;
|
||||
+ NOTICE ("rrdtool plugin: RRASingle = true: creating only AVERAGE RRAs");
|
||||
+ }
|
||||
+ }
|
||||
else if (strcasecmp ("XFF", key) == 0)
|
||||
{
|
||||
double tmp = atof (value);
|
||||
} else if (strcasecmp("XFF", key) == 0) {
|
||||
double tmp = atof(value);
|
||||
if ((tmp < 0.0) || (tmp >= 1.0)) {
|
||||
--- a/src/utils_rrdcreate.c
|
||||
+++ b/src/utils_rrdcreate.c
|
||||
@@ -213,6 +213,9 @@ static int rra_get (char ***ret, const v
|
||||
@@ -180,6 +180,9 @@ static int rra_get(char ***ret, const va
|
||||
rts_num = rra_timespans_num;
|
||||
}
|
||||
|
||||
@@ -42,11 +40,11 @@
|
||||
+ rra_types_num = 1;
|
||||
+
|
||||
rra_max = rts_num * rra_types_num;
|
||||
assert (rra_max > 0);
|
||||
assert(rra_max > 0);
|
||||
|
||||
--- a/src/utils_rrdcreate.h
|
||||
+++ b/src/utils_rrdcreate.h
|
||||
@@ -41,6 +41,8 @@ struct rrdcreate_config_s
|
||||
@@ -40,6 +40,8 @@ struct rrdcreate_config_s {
|
||||
int *timespans;
|
||||
size_t timespans_num;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user