summaryrefslogtreecommitdiffstats
path: root/collectors/apps.plugin
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2019-10-17 15:18:16 +0300
committerGitHub <noreply@github.com>2019-10-17 15:18:16 +0300
commite2d151d5923b9ae89d38cd260942a5f4cf11a238 (patch)
tree59dbb7937727903aab5a0a90cdec209457e21865 /collectors/apps.plugin
parentd0291aa7e69c2020121864229cc6f542bcbd5db9 (diff)
Fix CPU charts in apps plugin on FreeBSD (#7115)
Diffstat (limited to 'collectors/apps.plugin')
-rw-r--r--collectors/apps.plugin/apps_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/apps.plugin/apps_plugin.c b/collectors/apps.plugin/apps_plugin.c
index 4dcbd38b7d..93159406e4 100644
--- a/collectors/apps.plugin/apps_plugin.c
+++ b/collectors/apps.plugin/apps_plugin.c
@@ -2569,7 +2569,7 @@ static int collect_data_for_all_processes(void) {
size_t new_procbase_size;
- int mib[3] = { CTL_KERN, KERN_PROC, KERN_PROC_ALL };
+ int mib[3] = { CTL_KERN, KERN_PROC, KERN_PROC_PROC };
if (unlikely(sysctl(mib, 3, NULL, &new_procbase_size, NULL, 0))) {
error("sysctl error: Can't get processes data size");
return 0;