summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-06-28 23:18:01 +0300
committerGitHub <noreply@github.com>2023-06-28 23:18:01 +0300
commitb52a989497f68cddeeb0282f5fd650c4e373e477 (patch)
tree592c33c5b51b16c18df65f2b316efef13a3cbac3 /daemon
parent5be9be74854d00879e6d52d6432ae12b5e8558cd (diff)
Optimizations Part 2 (#15267)
* make all pluginsd functions inline, instead of function pointers * dynamic MRG partitions based on the number of CPUs * report the right size of the MRG
Diffstat (limited to 'daemon')
-rw-r--r--daemon/common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/common.c b/daemon/common.c
index d189713051..9e1c9b9c63 100644
--- a/daemon/common.c
+++ b/daemon/common.c
@@ -58,6 +58,9 @@ long get_netdata_cpus(void) {
processors = cores_user_configured;
+ if(processors < 1)
+ processors = 1;
+
return processors;
}