diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-05-16 12:02:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 12:02:53 +0300 |
commit | 3fa3b0bd35c1a95887e68ee60624207640dde620 (patch) | |
tree | bb7fe8d80b77d7657bd630b88d81d40914ebee3c /daemon | |
parent | ce2e3083856bb8e080f4808e06286f023c313a97 (diff) |
fix `[global statistics]` section in netdata.conf (#12916)
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/global_statistics.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/daemon/global_statistics.c b/daemon/global_statistics.c index 8ac2684155..17b5b8cfa0 100644 --- a/daemon/global_statistics.c +++ b/daemon/global_statistics.c @@ -4,8 +4,6 @@ #define GLOBAL_STATS_RESET_WEB_USEC_MAX 0x01 -#define CONFIG_SECTION_GLOBAL_STATISTICS "global statistics" - #define WORKER_JOB_GLOBAL 0 #define WORKER_JOB_REGISTRY 1 #define WORKER_JOB_WORKERS 2 @@ -1495,7 +1493,7 @@ void *global_statistics_main(void *ptr) netdata_thread_cleanup_push(global_statistics_cleanup, ptr); int update_every = - (int)config_get_number("CONFIG_SECTION_GLOBAL_STATISTICS", "update every", localhost->rrd_update_every); + (int)config_get_number(CONFIG_SECTION_GLOBAL_STATISTICS, "update every", localhost->rrd_update_every); if (update_every < localhost->rrd_update_every) update_every = localhost->rrd_update_every; |